summaryrefslogtreecommitdiff
path: root/noncore/games/kbill/Cable.h
Side-by-side diff
Diffstat (limited to 'noncore/games/kbill/Cable.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/kbill/Cable.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/noncore/games/kbill/Cable.h b/noncore/games/kbill/Cable.h
new file mode 100644
index 0000000..bb6c31c
--- a/dev/null
+++ b/noncore/games/kbill/Cable.h
@@ -0,0 +1,20 @@
+#ifndef CABLE_H
+#define CABLE_H
+
+class Cable {
+public:
+ int c1, c2; /*computers connected */
+ int x1,y1,x2,y2; /*endpoints of line representing cable */
+ int x, y; /*current location of spark*/
+ float fx, fy; /*needed for line drawing*/
+ int delay; /*how much time until spark leaves*/
+ int active; /*is spark moving and from which end*/
+ int index;
+ void setup();
+ void draw();
+ void update();
+ int onspark (int locx, int locy);
+
+};
+
+#endif