15 #ifndef CHARACTER_STATE_MACHINE_
16 #define CHARACTER_STATE_MACHINE_
24 struct CharacterStateMachineDef;
25 struct CharacterState;
39 WorldTime current_time;
49 const CharacterStateMachineDef*
const state_machine_def);
60 const CharacterState* current_state()
const {
return current_state_; }
62 void SetCurrentState(
int new_stateId, WorldTime state_start_time);
64 WorldTime current_state_start_time()
const {
65 return current_state_start_time_;
69 const CharacterStateMachineDef* state_machine_def_;
70 const CharacterState* current_state_;
71 WorldTime current_state_start_time_;
74 bool EvaluateCondition(
const Condition* condition,
83 bool CharacterStateMachineDef_Validate(
84 const CharacterStateMachineDef*
const state_machine_def);
89 #endif // CHARACTER_STATE_MACHINE_
Definition: character_state_machine.h:44