15class BotGuardAnd
extends BotGuardBase
17 ref BotGuardBase m_arg0;
18 ref BotGuardBase m_arg1;
20 void BotGuardAnd (BotGuardBase arg0 = NULL, BotGuardBase arg1 = NULL) { m_arg0 = arg0; m_arg1 = arg1; }
24 bool result = m_arg0.GuardCondition(e) && m_arg1.GuardCondition(e);
25 botDebugPrint(
"[botfsm] guard - " + m_arg0.Type() +
" && " + m_arg1.Type() +
" = " + result);
30class BotGuardNot
extends BotGuardBase
32 ref BotGuardBase m_arg0;
34 void BotGuardNot (BotGuardBase arg0 = NULL) { m_arg0 = arg0; }
38 bool result = !m_arg0.GuardCondition(e);
39 botDebugPrint(
"[botfsm] guard - ! " + m_arg0.Type() +
" = " + result);
44class BotGuardOr
extends BotGuardBase
46 ref BotGuardBase m_arg0;
47 ref BotGuardBase m_arg1;
49 void BotGuardOr (BotGuardBase arg0 = NULL, BotGuardBase arg1 = NULL) { m_arg0 = arg0; m_arg1 = arg1; }
53 bool result = m_arg0.GuardCondition(e) || m_arg1.GuardCondition(e);
54 botDebugPrint(
"[botfsm] guard - " + m_arg0.Type() +
" || " + m_arg1.Type() +
" = " + result);
59class BotGuardHasItemInHands
extends BotGuardBase
62 void BotGuardHasItemInHands (Man p = NULL) {
m_Player = p; }
68 if (LogManager.IsInventoryHFSMLogEnable())
hndDebugPrint(
"[botfsm] guard - has valid entity in hands");
72 if (LogManager.IsInventoryHFSMLogEnable())
hndDebugPrint(
"[botfsm] guard - no entity in hands");
78class BotGuardDebugEventMatches
extends BotGuardBase
80 protected ref BotEventStartDebug m_Event;
82 void BotGuardDebugEventMatches(BotEventStartDebug e = NULL) { m_Event = e; }
86 BotEventStartDebug other;
87 if (!Class.CastTo(other, e))
92 return other.m_Id == m_Event.m_Id;
override bool GuardCondition(WeaponEventBase e)
void hndDebugPrint(string s)