Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
BotStateBase Class Reference

represent weapon state base More...

Inheritance diagram for BotStateBase:
BotStateIdle BotTestSpamUserActions BotTestSwapG2H BotTestSwapInternal BotTestSwapInternalC2H BotTestSwapWithCorpse

Protected Member Functions

void BotTimedWait (Bot bot=NULL, BotStateBase parent=NULL, float timeout=3.0)
 
override void OnEntry (BotEventBase e)
 
override void OnExit (BotEventBase e)
 
override void OnUpdate (float dt)
 
void OnTimeout ()
 

Protected Attributes

float m_Timeout = 3.0
 
bool m_Periodic = true
 

Detailed Description

represent weapon state base

Class comes with entry/update/exit hooks that can be overriden in custom states

Class is ready for hierarchic composition, i.e. this state having a sub-machine running under hood. If no m_FSM member is configured, class acts as ordinary plain finite machine state.

Definition at line 15 of file bot_hunt.c.

Member Function Documentation

◆ BotTimedWait()

void BotStateBase::BotTimedWait ( Bot bot = NULL,
BotStateBase parent = NULL,
float timeout = 3.0 )
protected

Definition at line 10 of file bot_timedwait.c.

◆ OnEntry()

override void BotStateBase::OnEntry ( BotEventBase e)
protected

Definition at line 15 of file bot_timedwait.c.

◆ OnExit()

override void BotStateBase::OnExit ( BotEventBase e)
protected

Definition at line 22 of file bot_timedwait.c.

◆ OnTimeout()

void BotStateBase::OnTimeout ( )
protected

Definition at line 47 of file bot_timedwait.c.

◆ OnUpdate()

override void BotStateBase::OnUpdate ( float dt)
protected

Definition at line 29 of file bot_timedwait.c.

Member Data Documentation

◆ m_Periodic

bool BotStateBase::m_Periodic = true
protected

Definition at line 8 of file bot_timedwait.c.

◆ m_Timeout

float BotStateBase::m_Timeout = 3.0
protected

Definition at line 7 of file bot_timedwait.c.


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