Event class used in the state machine.
Event class used in the state machine.
void enableTransition(unsigned int from, unsigned int to)
Event(std::string name, std::string senderInfo)
EventData * getEventData()
Get event data that was possibly send with this event. If the function returns nullptr,...
std::map< unsigned int, unsigned int > _transitions
const char * name() const
const char * senderInfo() const
unsigned int getNewState(unsigned int currentState)
Check if there is a transition to a new state. The current state is used to lookup the new state.
Collection of classes for a state machine implementation used in the Erleb-AR app.