00001 #ifndef ENERGIZER_H 00002 #define ENERGIZER_H 00003 00004 #include "board.h" 00005 00006 enum energizerState { on, off }; 00007 00008 class Energizer { 00009 public: 00010 Energizer(Board *b); 00011 void setMaxPixmaps(int max); 00012 void setOff(); 00013 void setOn(); 00014 void setPosition(int pos); 00015 energizerState state(); 00016 int position(); 00017 bool move(); 00018 int pix(); 00019 00020 private: 00021 Board *board; 00022 00023 energizerState actualState; // the state of energizer 00024 00025 int actualPix; // last Pixmap-index 00026 int maxPixmaps; // Number of Pixmaps (1..) 00027 int actualPosition; // actual position on board 00028 }; 00029 00030 #endif // ENERGIZER_H
1.4.2