2016-12-04 18:53:43 +00:00
|
|
|
#include "Globals.h"
|
|
|
|
#include "StateHandler.h"
|
|
|
|
|
|
|
|
|
|
|
|
SegmentDisplay* display;
|
|
|
|
Button* buttonA;
|
|
|
|
Button* buttonB;
|
2016-12-05 22:42:20 +00:00
|
|
|
Button* buttonArmed;
|
2016-12-04 18:53:43 +00:00
|
|
|
|
|
|
|
uint32_t shots = 0;
|
|
|
|
uint32_t hits = 0;
|
|
|
|
|
|
|
|
unsigned long currentTime;
|
|
|
|
AbstractStateHandler* currentState;
|
|
|
|
|
|
|
|
|
|
|
|
void setCurrentState(AbstractStateHandler* value)
|
|
|
|
{
|
|
|
|
buttonA->block();
|
|
|
|
buttonB->block();
|
|
|
|
|
|
|
|
currentState = value;
|
|
|
|
currentState->setup();
|
|
|
|
}
|