updated to gameclass merged with v1.1 power

This commit is contained in:
2021-05-09 22:07:01 +02:00
parent f19e7b79f4
commit ef9d84b09d
12 changed files with 378 additions and 297 deletions

View File

@@ -3,9 +3,29 @@
#include "Arduino.h"
#include "buttons.h"
#include "game.h"
void HandleChainGame( bool newstate );
void ResetChainGame(void);
class c_chaingame : public c_game
{
private:
uint8_t patternIndex;
bool patternFlag = false;
uint16_t cheatbutton = 0;
bool cheatButtonFlag = false;
uint16_t ledpattern[4] = {1, 3, 1, 2};
int patternlength = sizeof(ledpattern) / sizeof(ledpattern[0]);
void nextPattern(void);
public:
c_chaingame(): c_game{chaingame} {}
void runGame(void);
void initGame(void);
void resetGame(void);
};
// void HandleChainGame( bool newstate );
// void ResetChainGame(void);
#endif //CHAINGAMEH