13 #ifndef EXO_STATEMACHINE_H 14 #define EXO_STATEMACHINE_H 73 #define EventObject(_name_) \ 75 friend class _name_; \ 76 class _name_ : public Event { \ 78 _name_(StateMachine *m, \ 79 const char *name = NULL) \ 90 #define NewTransition(_from_, _event_, _to_) \ 91 _from_->addArc(new Transition(_to_, _event_)) 93 #endif //EXO_STATEMACHINE_H Abstract class representing a state machine. Includes a number of State and Transition objects...
StateMachine(void)
Construct a new State Machine object.
void activate(void)
Calls the entry method of the current state.
State * currentState
Pointer to the current state.
Abstract class representing a state in a StateMachine.
State * getCurState(void)
Returns a pointer to the current state.
void initialize(State *i)
Sets the current state. Note: No check made.
virtual void update(void)
Processes the state machine. For each possible transition, checks if that transition should be made I...