5 #ifndef __RD_STATE_DIRECTOR_HPP__
6 #define __RD_STATE_DIRECTOR_HPP__
35 virtual bool Start() = 0;
43 virtual bool Stop() = 0;
58 std::map<int, StateDirector * > nextStates;
61 #endif // __RD_STATE_DIRECTOR_HPP__
virtual bool Stop()=0
Function to stop the attached State.
StateDirector(State *state)
Creates a StateDirector attached to a State.
Definition: StateDirector.cpp:11
The main, catch-all namespace for Robot Devastation.
Definition: groups.dox:4
virtual bool isActive() const
Returns the current state of the State.
Definition: StateDirector.cpp:48
virtual bool Start()=0
Function that starts the attached State.
Base class for each of the states of a FiniteStateMachine.
Definition: State.hpp:18
std::string getStateId() const
Allows access to the id of the attached State.
Definition: StateDirector.cpp:25
virtual bool addTransition(StateDirector *nextState, int condition)
Adds a transition to a given state depending on a given condition.
Definition: StateDirector.cpp:33
A base class for controlling flow of States of a Finite State Machine.
Definition: StateDirector.hpp:19