summaryrefslogtreecommitdiffstats
path: root/kpacman/energizer.h
diff options
context:
space:
mode:
Diffstat (limited to 'kpacman/energizer.h')
-rw-r--r--kpacman/energizer.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/kpacman/energizer.h b/kpacman/energizer.h
new file mode 100644
index 0000000..377cd02
--- /dev/null
+++ b/kpacman/energizer.h
@@ -0,0 +1,30 @@
+#ifndef ENERGIZER_H
+#define ENERGIZER_H
+
+#include "board.h"
+
+enum energizerState { on, off };
+
+class Energizer {
+public:
+ Energizer(Board *b);
+ void setMaxPixmaps(int max);
+ void setOff();
+ void setOn();
+ void setPosition(int pos);
+ energizerState state();
+ int position();
+ bool move();
+ int pix();
+
+private:
+ Board *board;
+
+ energizerState actualState; // the state of energizer
+
+ int actualPix; // last Pixmap-index
+ int maxPixmaps; // Number of Pixmaps (1..)
+ int actualPosition; // actual position on board
+};
+
+#endif // ENERGIZER_H