DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ BotTestAttachAndDropCycle()

void BotStateBase::BotTestAttachAndDropCycle ( Bot bot = NULL,
BotStateBase parent = NULL )
inlineprivate

См. определение в файле Bot_TestAttachAndDropCycle.c строка 11

12 {
13 // setup nested state machine
14 m_FSM = new BotFSM(this); // @NOTE: set owner of the submachine fsm
15
16 m_Detaching = new BotTestAttachAndDropCycle_Detaching(m_Bot, this);
17 m_Attaching = new BotTestAttachAndDropCycle_Attaching(m_Bot, this);
18
19 // events
20 BotEventBase __EntAtt__ = new BotEventEntityAttached;
21 BotEventBase __EntDet__ = new BotEventEntityDetached;
22
23 // transitions
24 m_FSM.AddTransition(new BotTransition( m_Detaching, __EntDet__, m_Attaching));
25 m_FSM.AddTransition(new BotTransition( m_Attaching, __EntAtt__, m_Detaching));
26
27 m_FSM.SetInitialState(m_Detaching);
28 }
FSMTransition< BotStateBase, BotEventBase, BotActionBase, BotGuardBase > BotTransition
Определения BotFSM.c:7
ref BotTestAttachAndDropCycle_Attaching m_Attaching
Определения Bot_TestAttachAndDropCycle.c:9
ref BotTestAttachAndDropCycle_Detaching m_Detaching
Определения Bot_TestAttachAndDropCycle.c:8
ref BotFSM m_FSM
hierarchical parent state of this state (or null)
Определения BotStates.c:15
Bot m_Bot
man that this state belongs to
Определения BotStates.c:13

Перекрестные ссылки BotStateBase(), m_Attaching, m_Bot, m_Detaching и m_FSM.