24 void SetParentState (
BotStateBase parent) { m_ParentState = parent; }
30 bool HasFSM () {
return m_FSM != NULL; }
31 BotFSM GetFSM () {
return m_FSM; }
36 return m_FSM.ProcessEvent(e);
46 m_FSM.AddTransition(t);
48 Error(
"[botfsm] adding transition to state without FSM. Configure FSM first.");
59 if (HasFSM() && !m_FSM.IsRunning())
73 void OnUpdate (
float dt)
75 if (HasFSM() && m_FSM.IsRunning())
76 m_FSM.GetCurrentState().OnUpdate(dt);
85 if (HasFSM() && m_FSM.IsRunning())
106 bool IsWaitingForActionFinish () {
return HasFSM() && m_FSM.IsRunning() && m_FSM.GetCurrentState().IsWaitingForActionFinish(); }
112 bool IsIdle () {
return false; }
133 override bool IsIdle () {
return true; }