summaryrefslogtreecommitdiff
path: root/noncore/games/kpacman/energizer.h
Unidiff
Diffstat (limited to 'noncore/games/kpacman/energizer.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/kpacman/energizer.h30
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
6enum energizerState { on, off };
7
8class Energizer {
9public:
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
20private:
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