firmware release 1.2
fixed MSboard, game class prep, power impr.
This commit is contained in:
31
src/game.h
31
src/game.h
@@ -1,18 +1,35 @@
|
||||
#ifndef GAMEH
|
||||
#define GAMEH
|
||||
|
||||
typedef enum
|
||||
{
|
||||
simpleled,
|
||||
chaingame,
|
||||
magicswitchboard,
|
||||
detectled
|
||||
} e_game;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
disabled,
|
||||
init,
|
||||
active
|
||||
} e_state;
|
||||
|
||||
class c_game
|
||||
{
|
||||
|
||||
protected:
|
||||
bool _status;
|
||||
private:
|
||||
const e_game _gameindex;
|
||||
e_state _status;
|
||||
|
||||
public:
|
||||
c_game(void): _status(false) {};
|
||||
c_game(e_game index) : _gameindex(index) {_status = disabled;}
|
||||
|
||||
void runGame(void);
|
||||
void initGame(void);
|
||||
bool getStatus(void) { return _status;}
|
||||
virtual void runGame(void);
|
||||
virtual void initGame(void);
|
||||
e_state getStatus(void) { return _status; }
|
||||
e_game getIndex(void) { return _gameindex; }
|
||||
void setStatus(e_state newstate) { _status = newstate;}
|
||||
};
|
||||
|
||||
#endif //GAMEH
|
||||
Reference in New Issue
Block a user