DayZ 1.24
Loading...
Searching...
No Matches
BotGuardBase Class Reference

represents guard on a transition from state to state More...

Collaboration diagram for BotGuardBase:
[legend]

Private Member Functions

bool GuardCondition (BotEventBase e)
 
void BotGuardAnd (BotGuardBase arg0=NULL, BotGuardBase arg1=NULL)
 
override bool GuardCondition (BotEventBase e)
 
void BotGuardNot (BotGuardBase arg0=NULL)
 
override bool GuardCondition (BotEventBase e)
 
void BotGuardOr (BotGuardBase arg0=NULL, BotGuardBase arg1=NULL)
 
override bool GuardCondition (BotEventBase e)
 

Private Attributes

ref BotGuardBase m_arg0
 
ref BotGuardBase m_arg1
 

Detailed Description

represents guard on a transition from state to state

Definition at line 4 of file BotGuards.c.

Member Function Documentation

◆ BotGuardAnd()

void BotGuardBase::BotGuardAnd ( BotGuardBase arg0 = NULL,
BotGuardBase arg1 = NULL )
inlineprivate

Definition at line 19 of file BotGuards.c.

19{ m_arg0 = arg0; m_arg1 = arg1; }
ref BotGuardBase m_arg1
Definition BotGuards.c:17
ref BotGuardBase m_arg0
Definition BotGuards.c:16

◆ BotGuardNot()

void BotGuardBase::BotGuardNot ( BotGuardBase arg0 = NULL)
inlineprivate

Definition at line 33 of file BotGuards.c.

33{ m_arg0 = arg0; }

◆ BotGuardOr()

void BotGuardBase::BotGuardOr ( BotGuardBase arg0 = NULL,
BotGuardBase arg1 = NULL )
inlineprivate

Definition at line 48 of file BotGuards.c.

48{ m_arg0 = arg0; m_arg1 = arg1; }

◆ GuardCondition() [1/4]

bool BotGuardBase::GuardCondition ( BotEventBase e)
inlineprivate

Definition at line 11 of file BotGuards.c.

11{ return true; }

◆ GuardCondition() [2/4]

override bool BotGuardBase::GuardCondition ( BotEventBase e)
inlineprivate

Definition at line 21 of file BotGuards.c.

22 {
23 bool result = m_arg0.GuardCondition(e) && m_arg1.GuardCondition(e);
24 botDebugPrint("[botfsm] guard - " + m_arg0.Type() + " && " + m_arg1.Type() + " = " + result);
25 return result;
26 }
void botDebugPrint(string s)
Definition Bot.c:182

References botDebugPrint().

◆ GuardCondition() [3/4]

override bool BotGuardBase::GuardCondition ( BotEventBase e)
inlineprivate

Definition at line 35 of file BotGuards.c.

36 {
37 bool result = !m_arg0.GuardCondition(e);
38 botDebugPrint("[botfsm] guard - ! " + m_arg0.Type() + " = " + result);
39 return result;
40 }

References botDebugPrint().

◆ GuardCondition() [4/4]

override bool BotGuardBase::GuardCondition ( BotEventBase e)
inlineprivate

Definition at line 50 of file BotGuards.c.

51 {
52 bool result = m_arg0.GuardCondition(e) || m_arg1.GuardCondition(e);
53 botDebugPrint("[botfsm] guard - " + m_arg0.Type() + " || " + m_arg1.Type() + " = " + result);
54 return result;
55 }

References botDebugPrint().

Member Data Documentation

◆ m_arg0

ref BotGuardBase BotGuardBase::m_arg0
private

Definition at line 16 of file BotGuards.c.

◆ m_arg1

ref BotGuardBase BotGuardBase::m_arg1
private

Definition at line 17 of file BotGuards.c.


The documentation for this class was generated from the following file: