author | mark <mark> | 2002-04-14 17:08:03 (UTC) |
---|---|---|
committer | mark <mark> | 2002-04-14 17:08:03 (UTC) |
commit | bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57 (patch) (unidiff) | |
tree | ad77e90c90f4bfb598bbe93aa4b3e14b689c96f4 /noncore/games/kbill/Cable.h | |
parent | a0fe593db4e700989cc19e28b67a58f87823afeb (diff) | |
download | opie-bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57.zip opie-bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57.tar.gz opie-bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57.tar.bz2 |
Import of kbill
-rw-r--r-- | noncore/games/kbill/Cable.h | 20 |
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 @@ | |||
1 | #ifndef CABLE_H | ||
2 | #define CABLE_H | ||
3 | |||
4 | class Cable { | ||
5 | public: | ||
6 | int c1, c2; /*computers connected */ | ||
7 | int x1,y1,x2,y2;/*endpoints of line representing cable */ | ||
8 | int x, y; /*current location of spark*/ | ||
9 | float fx, fy; /*needed for line drawing*/ | ||
10 | int delay; /*how much time until spark leaves*/ | ||
11 | int active; /*is spark moving and from which end*/ | ||
12 | int index; | ||
13 | void setup(); | ||
14 | void draw(); | ||
15 | void update(); | ||
16 | int onspark (int locx, int locy); | ||
17 | |||
18 | }; | ||
19 | |||
20 | #endif | ||