author | leseb <leseb> | 2002-04-15 22:40:28 (UTC) |
---|---|---|
committer | leseb <leseb> | 2002-04-15 22:40:28 (UTC) |
commit | a91544d04ed391bbdc0c6f95ff8a80d35190788c (patch) (unidiff) | |
tree | 85dea85fd8a1cdb6d2d18fef57753d0b5e4bd143 /noncore/games/kpacman/energizer.h | |
parent | 6396d8b9fca7f3f50010a13a26e4ee9569abefb3 (diff) | |
download | opie-a91544d04ed391bbdc0c6f95ff8a80d35190788c.zip opie-a91544d04ed391bbdc0c6f95ff8a80d35190788c.tar.gz opie-a91544d04ed391bbdc0c6f95ff8a80d35190788c.tar.bz2 |
New directory structure
Diffstat (limited to 'noncore/games/kpacman/energizer.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/kpacman/energizer.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/noncore/games/kpacman/energizer.h b/noncore/games/kpacman/energizer.h new file mode 100644 index 0000000..377cd02 --- a/dev/null +++ b/noncore/games/kpacman/energizer.h | |||
@@ -0,0 +1,30 @@ | |||
1 | #ifndef ENERGIZER_H | ||
2 | #define ENERGIZER_H | ||
3 | |||
4 | #include "board.h" | ||
5 | |||
6 | enum energizerState { on, off }; | ||
7 | |||
8 | class Energizer { | ||
9 | public: | ||
10 | Energizer(Board *b); | ||
11 | void setMaxPixmaps(int max); | ||
12 | void setOff(); | ||
13 | void setOn(); | ||
14 | void setPosition(int pos); | ||
15 | energizerState state(); | ||
16 | int position(); | ||
17 | bool move(); | ||
18 | int pix(); | ||
19 | |||
20 | private: | ||
21 | Board *board; | ||
22 | |||
23 | energizerState actualState; // the state of energizer | ||
24 | |||
25 | int actualPix; // last Pixmap-index | ||
26 | int maxPixmaps; // Number of Pixmaps (1..) | ||
27 | int actualPosition; // actual position on board | ||
28 | }; | ||
29 | |||
30 | #endif // ENERGIZER_H | ||