DayZ 1.24
|
represent weapon state base More...
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 |
Private Attributes | |
Man | m_Target |
float | m_dtAccumulator = 0.0 |
ref BotHunt_Tracking | m_Tracking |
ref BotHunt_Hunting | m_Hunting |
EntityAI | m_Target |
bool | m_TargetInSight = false |
bool | m_TargetLost = false |
bool | m_Tracking = true |
EntityAI | m_Entity |
ref BotTestAttachAndDropCycle_Detaching | m_Detaching |
ref BotTestAttachAndDropCycle_Attaching | m_Attaching |
ref BotTestItemMoveBackAndForth_MoveFromSlotToSlot | m_Move |
int | m_WaitingForSlot = InventorySlots.INVALID |
int | m_hgSlot = InventorySlots.GetSlotIdFromString("Headgear") |
int | m_mskSlot = InventorySlots.GetSlotIdFromString("Mask") |
string | m_Type |
ref BotSpawnEntityInHands | m_Spawning |
ref BotOpenEntityInHands | m_Opening |
PlayerBase | m_Owner |
Bot | m_Bot |
man that this state belongs to | |
BotStateBase | m_ParentState |
bot that this state belongs to | |
ref BotFSM | m_FSM |
hierarchical parent state of this state (or null) | |
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.
|
inlineprivate |
nested state machine (or null)
Definition at line 17 of file BotStates.c.
References m_Bot, m_Owner, and m_ParentState.
|
inlineprivate |
adds transition into m_FSM transition table
Definition at line 43 of file BotStates.c.
|
inlineprivate |
Definition at line 97 of file Bot_TestSpawnAndOpenCan.c.
References m_Type.
|
inlineprivate |
Definition at line 23 of file Bot_Hunt.c.
|
inlineprivate |
Definition at line 11 of file Bot_TestAttachAndDropCycle.c.
|
inlineprivate |
Definition at line 6 of file Bot_TestItemMoveBackAndForth.c.
|
inlineprotected |
Definition at line 10 of file Bot_TimedWait.c.
|
inlineprivate |
Definition at line 77 of file Bot_TestItemMoveBackAndForth.c.
References Error(), and InventorySlots::INVALID.
|
inlineprivate |
Definition at line 28 of file BotStates.c.
References m_ParentState.
|
inlineprivate |
|
inlineprivate |
Definition at line 30 of file BotStates.c.
References m_FSM.
Referenced by AddTransition(), IsWaitingForActionFinish(), OnAbort(), OnEntry(), OnUpdate(), and ProcessEvent().
|
inlineprivate |
idle state does not expect any animation events
Definition at line 112 of file BotStates.c.
|
inlineprivate |
waiting for active animation action/actionType finish
Definition at line 106 of file BotStates.c.
|
inlineprivate |
Definition at line 105 of file Bot_Hunt.c.
|
inlineprivate |
Definition at line 179 of file Bot_Hunt.c.
|
inlineprivate |
Definition at line 61 of file Bot_TestAttachAndDropCycle.c.
|
inlineprivate |
Definition at line 95 of file Bot_TestAttachAndDropCycle.c.
|
inlineprivate |
Definition at line 70 of file Bot_TestItemMoveBackAndForth.c.
|
inlineprivate |
Definition at line 64 of file Bot_TestSpawnAndOpenCan.c.
|
inlineprivate |
Definition at line 129 of file Bot_TestSpawnAndOpenCan.c.
|
inlineprivate |
Definition at line 83 of file BotStates.c.
References botDebugPrint(), HasFSM(), m_FSM, ToString(), and Type.
|
inlineprivate |
Definition at line 50 of file Bot_Hunt.c.
References m_dtAccumulator, and SelectTarget().
|
inlineprivate |
Definition at line 96 of file Bot_Hunt.c.
|
inlineprivate |
Definition at line 174 of file Bot_Hunt.c.
|
inlineprivate |
Definition at line 30 of file Bot_TestAttachAndDropCycle.c.
|
inlineprivate |
Definition at line 56 of file Bot_TestAttachAndDropCycle.c.
|
inlineprivate |
Definition at line 90 of file Bot_TestAttachAndDropCycle.c.
|
inlineprivate |
Definition at line 22 of file Bot_TestItemMoveBackAndForth.c.
References Error(), InventorySlots::GetSlotIdFromString(), m_Entity, m_Entity, and m_Owner.
|
inlineprivate |
Definition at line 65 of file Bot_TestItemMoveBackAndForth.c.
|
inlineprivate |
Definition at line 15 of file Bot_TestSpawnAndOpenCan.c.
|
inlineprivate |
Definition at line 44 of file Bot_TestSpawnAndOpenCan.c.
References botDebugPrint(), m_Entity, and m_Owner.
|
inlineprivate |
Definition at line 118 of file Bot_TestSpawnAndOpenCan.c.
|
inlineprivate |
Definition at line 128 of file Bot_TestSpawnAndOpenCan.c.
|
inlineprotected |
Definition at line 15 of file Bot_TimedWait.c.
References m_dtAccumulator.
|
inlineprivate |
Definition at line 57 of file BotStates.c.
References botDebugPrint(), HasFSM(), m_FSM, ToString(), and Type.
|
inlineprivate |
Definition at line 58 of file Bot_Hunt.c.
References m_dtAccumulator, and m_Target.
|
inlineprivate |
Definition at line 114 of file Bot_Hunt.c.
|
inlineprivate |
Definition at line 181 of file Bot_Hunt.c.
|
inlineprivate |
|
inlineprivate |
Definition at line 63 of file Bot_TestAttachAndDropCycle.c.
|
inlineprivate |
Definition at line 97 of file Bot_TestAttachAndDropCycle.c.
|
inlineprivate |
|
inlineprivate |
Definition at line 72 of file Bot_TestItemMoveBackAndForth.c.
|
inlineprivate |
Definition at line 23 of file Bot_TestSpawnAndOpenCan.c.
|
inlineprivate |
Definition at line 66 of file Bot_TestSpawnAndOpenCan.c.
|
inlineprivate |
Definition at line 119 of file Bot_TestSpawnAndOpenCan.c.
|
inlineprivate |
Definition at line 130 of file Bot_TestSpawnAndOpenCan.c.
|
inlineprotected |
Definition at line 22 of file Bot_TimedWait.c.
References m_dtAccumulator.
|
inlineprivate |
Definition at line 97 of file BotStates.c.
References botDebugPrint(), ToString(), and Type.
|
inlineprivate |
called on current state when state machine has changed its state
[in] | src | from state (previous) |
[in] | dst | to state (current) |
Definition at line 126 of file BotStates.c.
|
inlineprivate |
called when sub-machine has changed its state
[in] | src | from state (previous) |
[in] | dst | to state (current) |
Definition at line 119 of file BotStates.c.
|
inlineprotected |
Definition at line 47 of file Bot_TimedWait.c.
References botDebugSpam(), and m_Owner.
Definition at line 66 of file Bot_Hunt.c.
References m_dtAccumulator, m_dtAccumulator, m_Target, Print(), and SelectTarget().
Definition at line 123 of file Bot_Hunt.c.
References botDebugPrint(), vector::Distance(), GetPosition, m_Owner, and m_Target.
Definition at line 186 of file Bot_Hunt.c.
Definition at line 46 of file Bot_TestAttachAndDropCycle.c.
Definition at line 68 of file Bot_TestAttachAndDropCycle.c.
References botDebugPrint(), m_Entity, and m_Owner.
Definition at line 102 of file Bot_TestAttachAndDropCycle.c.
References botDebugPrint(), m_Entity, and m_Owner.
Definition at line 52 of file Bot_TestItemMoveBackAndForth.c.
Definition at line 87 of file Bot_TestItemMoveBackAndForth.c.
References botDebugPrint(), m_Entity, and m_Owner.
Definition at line 25 of file Bot_TestSpawnAndOpenCan.c.
References botDebugPrint(), and m_Owner.
Definition at line 71 of file Bot_TestSpawnAndOpenCan.c.
References botDebugPrint(), botDebugSpam(), and m_Owner.
Definition at line 120 of file Bot_TestSpawnAndOpenCan.c.
Definition at line 132 of file Bot_TestSpawnAndOpenCan.c.
References botDebugPrint(), botDebugSpam(), and m_Owner.
Definition at line 29 of file Bot_TimedWait.c.
References m_dtAccumulator, and OnTimeout().
|
inlineprivate |
|
inlineprivate |
Definition at line 42 of file Bot_Hunt.c.
References botDebugPrint(), BotSelectNearestTarget(), GetPlayerOwner(), m_Owner, m_Target, and m_Target.
Referenced by OnEntry(), and OnUpdate().
|
inlineprivate |
allows construction of hierarchical state machine
Definition at line 24 of file BotStates.c.
References m_ParentState.
|
private |
Definition at line 9 of file Bot_TestAttachAndDropCycle.c.
|
private |
man that this state belongs to
Definition at line 13 of file BotStates.c.
Referenced by BotStateBase(), BotStateIdle::BotStateIdle(), and BotTestSpamUserActions::BotTestSpamUserActions().
|
private |
Definition at line 8 of file Bot_TestAttachAndDropCycle.c.
|
private |
Definition at line 18 of file Bot_Hunt.c.
Referenced by OnUpdate().
|
private |
Definition at line 7 of file Bot_TestAttachAndDropCycle.c.
Referenced by OnEntry().
hierarchical parent state of this state (or null)
Definition at line 15 of file BotStates.c.
Referenced by AddTransition(), BotTestSpamUserActions::BotTestSpamUserActions(), GetFSM(), HasFSM(), IsWaitingForActionFinish(), OnAbort(), OnEntry(), OnUpdate(), and ProcessEvent().
|
private |
Definition at line 62 of file Bot_TestItemMoveBackAndForth.c.
|
private |
Definition at line 21 of file Bot_Hunt.c.
|
private |
Definition at line 4 of file Bot_TestItemMoveBackAndForth.c.
|
private |
Definition at line 63 of file Bot_TestItemMoveBackAndForth.c.
|
private |
Definition at line 95 of file Bot_TestSpawnAndOpenCan.c.
|
private |
Definition at line 12 of file BotStates.c.
Referenced by BotStateBase(), BotStateIdle::BotStateIdle(), GetPlayerOwner(), BotTestSwapInternal::OnEntry(), BotTestSwapInternalC2H::OnEntry(), BotTestSwapG2H::OnEntry(), BotTestSpamUserActions::OnEntry(), BotTestSwapInternal::OnUpdate(), and BotTestSwapInternalC2H::OnUpdate().
|
private |
bot that this state belongs to
Definition at line 14 of file BotStates.c.
Referenced by BotStateBase(), BotStateIdle::BotStateIdle(), GetParentState(), and SetParentState().
Definition at line 8 of file Bot_TimedWait.c.
|
private |
Definition at line 94 of file Bot_TestSpawnAndOpenCan.c.
|
private |
Definition at line 17 of file Bot_Hunt.c.
Referenced by SelectTarget().
|
private |
Definition at line 91 of file Bot_Hunt.c.
Definition at line 92 of file Bot_Hunt.c.
Definition at line 93 of file Bot_Hunt.c.
|
protected |
Definition at line 7 of file Bot_TimedWait.c.
|
private |
Definition at line 20 of file Bot_Hunt.c.
Definition at line 94 of file Bot_Hunt.c.
|
private |
Definition at line 5 of file Bot_TestSpawnAndOpenCan.c.
|
private |
Definition at line 61 of file Bot_TestItemMoveBackAndForth.c.