NerfStatTrak/Globals.cpp

24 lines
358 B
C++
Raw Normal View History

#include "Globals.h"
#include "StateHandler.h"
SegmentDisplay* display;
Button* buttonA;
Button* buttonB;
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();
}