Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
Bot Class Reference

Protected Member Functions

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

Protected Attributes

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

Private Attributes

PlayerBase m_Owner = null

Detailed Description

Definition at line 18 of file bot.c.

Constructor & Destructor Documentation

◆ Bot()

void Bot ( PlayerBase ow)
inlineprotected

Definition at line 26 of file bot.c.

References m_Owner.

Member Function Documentation

◆ AddTransition()

void AddTransition ( BotStateBase state,
int id )
inlineprotected

Definition at line 68 of file bot.c.

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

Referenced by InitFSM().

◆ InitFSM()

void InitFSM ( )
inlineprotected

transition table

Definition at line 81 of file bot.c.

References AddTransition(), m_FSM, and m_IdleState.

Referenced by Start().

◆ OnUpdate()

void OnUpdate ( float dt)
inlineprotected

Definition at line 55 of file bot.c.

References m_FSM.

◆ ProcessEvent()

bool ProcessEvent ( BotEventBase e)
inlineprotected

Definition at line 107 of file bot.c.

References botDebugSpam(), and m_FSM.

Referenced by StartAction().

◆ SetInstanceType()

void SetInstanceType ( DayZPlayerInstanceType t)
inlineprotected

Definition at line 31 of file bot.c.

References m_InstanceType.

◆ Start()

void Start ( )
inlineprotected

Definition at line 33 of file bot.c.

References InitFSM().

◆ StartAction()

void StartAction ( int action)
inlineprotected

Definition at line 43 of file bot.c.

References m_Owner, and ProcessEvent().

◆ Stop()

void Stop ( )
inlineprotected

Definition at line 38 of file bot.c.

References m_FSM.

Field Documentation

◆ ___Bgn__

ref BotEventBase ___Bgn__ = new BotEventStart
protected

Definition at line 61 of file bot.c.

◆ ___OK___

ref BotEventBase ___OK___ = new BotEventEndOK
protected

Definition at line 63 of file bot.c.

Referenced by AddTransition().

◆ __Fail__

ref BotEventBase __Fail__ = new BotEventEndFail
protected

Definition at line 64 of file bot.c.

Referenced by AddTransition().

◆ __IChg__

ref BotEventBase __IChg__ = new BotEventOnItemInHandsChanged
protected

Definition at line 66 of file bot.c.

◆ __Stop__

ref BotEventBase __Stop__ = new BotEventStop
protected

Definition at line 62 of file bot.c.

Referenced by AddTransition().

◆ __Tout__

ref BotEventBase __Tout__ = new BotEventEndTimeout
protected

Definition at line 65 of file bot.c.

Referenced by AddTransition().

◆ m_FSM

ref BotFSM m_FSM = null
protected

Definition at line 21 of file bot.c.

Referenced by AddTransition(), InitFSM(), OnUpdate(), ProcessEvent(), and Stop().

◆ m_IdleState

ref BotStateBase m_IdleState = null
protected

Definition at line 24 of file bot.c.

Referenced by AddTransition(), and InitFSM().

◆ m_InstanceType

Definition at line 22 of file bot.c.

Referenced by SetInstanceType().

◆ m_Owner

PlayerBase m_Owner = null
private

Definition at line 20 of file bot.c.

Referenced by Bot(), and StartAction().


The documentation for this class was generated from the following file:
  • F:/Games/Dayz/scripts/4_world/systems/bot/bot.c