14 #ifndef EXO_STATEMACHINE_H 15 #define EXO_STATEMACHINE_H 72 #define EventObject(_name_) \ 74 friend class _name_; \ 75 class _name_ : public Event { \ 77 _name_(StateMachine *m, \ 78 const char *name = NULL) \ 89 #define NewTransition(_from_, _event_, _to_) \ 90 _from_->addArc(new Transition(_to_, _event_)) 92 #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...