PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
Bot Class Reference

Private Member Functions

void Bot (PlayerBase ow)
 
void SetInstanceType (DayZPlayerInstanceType t)
 
void Start ()
 
void Stop ()
 
void StartAction (int action)
 
void OnUpdate (float dt)
 
void AddTransition (BotStateBase state, int id)
 
bool ProcessEvent (BotEventBase e)
 
void InitFSM ()
 

Private Attributes

PlayerBase m_Owner = null
 
protected ref BotFSM m_FSM = null
 
protected DayZPlayerInstanceType m_InstanceType = DayZPlayerInstanceType.INSTANCETYPE_CLIENT
 
protected ref BotStateBase m_IdleState = null
 
ref BotEventBase ___Bgn__ = new BotEventStart
 
ref BotEventBase __Stop__ = new BotEventStop
 
ref BotEventBase ___OK___ = new BotEventEndOK
 
ref BotEventBase __Fail__ = new BotEventEndFail
 
ref BotEventBase __Tout__ = new BotEventEndTimeout
 
ref BotEventBase __IChg__ = new BotEventOnItemInHandsChanged
 

Constructor & Destructor Documentation

◆ Bot()

void Bot ( PlayerBase  ow)
inlineprivate

References m_Owner.

Member Function Documentation

◆ AddTransition()

void AddTransition ( BotStateBase  state,
int  id 
)
inlineprivate

References ___OK___, __Fail__, __Stop__, __Tout__, m_FSM, and m_IdleState.

Referenced by InitFSM().

◆ InitFSM()

void InitFSM ( )
inlineprivate

transition table

References AddTransition(), m_FSM, and m_IdleState.

Referenced by Start().

◆ OnUpdate()

void OnUpdate ( float  dt)
inlineprivate

References m_FSM.

◆ ProcessEvent()

bool ProcessEvent ( BotEventBase  e)
inlineprivate

References botDebugSpam(), and m_FSM.

Referenced by StartAction().

◆ SetInstanceType()

void SetInstanceType ( DayZPlayerInstanceType  t)
inlineprivate

References m_InstanceType.

◆ Start()

void Start ( )
inlineprivate

References InitFSM().

◆ StartAction()

void StartAction ( int  action)
inlineprivate

References m_Owner, and ProcessEvent().

◆ Stop()

void Stop ( )
inlineprivate

References m_FSM.

Field Documentation

◆ ___Bgn__

ref BotEventBase ___Bgn__ = new BotEventStart
private

◆ ___OK___

ref BotEventBase ___OK___ = new BotEventEndOK
private

Referenced by AddTransition().

◆ __Fail__

ref BotEventBase __Fail__ = new BotEventEndFail
private

Referenced by AddTransition().

◆ __IChg__

ref BotEventBase __IChg__ = new BotEventOnItemInHandsChanged
private

◆ __Stop__

ref BotEventBase __Stop__ = new BotEventStop
private

Referenced by AddTransition().

◆ __Tout__

ref BotEventBase __Tout__ = new BotEventEndTimeout
private

Referenced by AddTransition().

◆ m_FSM

protected ref BotFSM m_FSM = null
private

◆ m_IdleState

protected ref BotStateBase m_IdleState = null
private

Referenced by AddTransition(), and InitFSM().

◆ m_InstanceType

Referenced by SetInstanceType().

◆ m_Owner

PlayerBase m_Owner = null
private

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