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

◆ BotHunt()

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

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

24 {
25 // setup nested state machine
26 m_FSM = new BotFSM(this); // @NOTE: set owner of the submachine fsm
27
28 m_Tracking = new BotHunt_Tracking(m_Bot, this);
29 m_Hunting = new BotHunt_Hunting(m_Bot, this);
30
31 // events
32 BotEventBase __InSight__ = new BotEventHuntedTargetInSight;
33 BotEventBase __Lost__ = new BotEventHuntedTargetLost;
34
35 // transitions
36 m_FSM.AddTransition(new BotTransition( m_Tracking, __InSight__, m_Hunting));
37 m_FSM.AddTransition(new BotTransition( m_Hunting, __Lost__ , m_Tracking));
38
39 m_FSM.SetInitialState(m_Tracking);
40 }
FSMTransition< BotStateBase, BotEventBase, BotActionBase, BotGuardBase > BotTransition
Определения BotFSM.c:7
ref BotFSM m_FSM
hierarchical parent state of this state (or null)
Определения BotStates.c:15
ref BotHunt_Tracking m_Tracking
Определения Bot_Hunt.c:20
ref BotHunt_Hunting m_Hunting
Определения Bot_Hunt.c:21
Bot m_Bot
man that this state belongs to
Определения BotStates.c:13

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