2016-12-04 18:53:43 +00:00
|
|
|
#ifndef StateDefault_h
|
|
|
|
#define StateDefault_h
|
|
|
|
|
|
|
|
#include "StateHandler.h"
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Default state
|
|
|
|
*
|
|
|
|
* Start by showing the current counter mode (hits or shots),
|
|
|
|
* then display the value.
|
|
|
|
*
|
|
|
|
* A: Add hit
|
|
|
|
* B short: Toggle between hits and shots and restart state
|
2016-12-05 22:42:20 +00:00
|
|
|
* A + B: Display "Error user unknwn"
|
|
|
|
* B long: Display "You lost the game" animation (losethegame.com - you're welcome!)
|
2016-12-04 18:53:43 +00:00
|
|
|
**/
|
|
|
|
class DefaultState : public AbstractStateHandler
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
bool showIntro = true;
|
|
|
|
unsigned long introStart;
|
|
|
|
|
|
|
|
void setShowHits(bool value);
|
|
|
|
|
|
|
|
public:
|
|
|
|
static bool ShowHits;
|
|
|
|
|
|
|
|
void setup();
|
|
|
|
void loop();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|