Tinman
1.0
|
#include <statemachine.h>
Public Types | |
typedef std::shared_ptr< StateMachine > | shared |
Public Member Functions | |
StateMachine (Game::shared game) | |
virtual | ~StateMachine () |
void | change_state (void) |
void | set_current_state (StateName next_state) |
State::shared | get_state (StateName state) |
State::shared | get_current_state () |
Private Types | |
typedef std::map< StateName, State::shared > | StateTable |
Private Attributes | |
StateTable | state_table_ |
StateName | current_state_ |
Game::shared | game_ |
typedef std::shared_ptr<StateMachine> StateMachine::shared |
|
private |
StateMachine::StateMachine | ( | Game::shared | game | ) |
|
virtual |
void StateMachine::change_state | ( | void | ) |
State::shared StateMachine::get_current_state | ( | ) |
State::shared StateMachine::get_state | ( | StateName | state | ) |
void StateMachine::set_current_state | ( | StateName | next_state | ) |
|
private |
|
private |
|
private |