firmware release 1.2

fixed MSboard, game class prep, power impr.
This commit is contained in:
2021-03-29 11:10:57 +02:00
parent 095e650457
commit 04b1235f1a
17 changed files with 222 additions and 113 deletions

View File

@@ -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