updated to gameclass merged with v1.1 power
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user