![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
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) |
| void | OnTimeout () |
| override void | OnUpdate (float dt) |
Protected Attributes | |
| bool | m_Periodic = true |
| float | m_Timeout = 3.0 |
Private Member Functions | |
| void | BotStateBase (Bot bot=NULL, BotStateBase parent=NULL) |
| nested state machine (or null) | |
| void | AddTransition (FSMTransition< BotStateBase, BotEventBase, BotActionBase, BotGuardBase > t) |
| void | Bot_TestSpawnOpen (Bot bot=NULL, BotStateBase parent=NULL, string new_type="") |
| void | BotHunt (Bot bot=NULL, BotStateBase parent=NULL) |
| void | BotSpawnEntityInHands (Bot bot=NULL, BotStateBase parent=NULL, string new_type="") |
| void | BotStanceRandomizer (Bot bot=NULL, BotStateBase parent=NULL) |
| void | BotTestAttachAndDropCycle (Bot bot=NULL, BotStateBase parent=NULL) |
| void | BotTestItemMoveBackAndForth (Bot bot=NULL, BotStateBase parent=NULL) |
| BotFSM | GetFSM () |
| int | GetNextSlot (int curr) |
| BotStateBase | GetParentState () |
| PlayerBase | GetPlayerOwner () |
| bool | HasFSM () |
| bool | IsIdle () |
| idle state does not expect any animation events | |
| bool | IsWaitingForActionFinish () |
| waiting for active animation action/actionType finish | |
| override void | OnAbort (BotEventBase e) |
| override void | OnAbort (BotEventBase e) |
| override void | OnAbort (BotEventBase e) |
| override void | OnAbort (BotEventBase e) |
| override void | OnAbort (BotEventBase e) |
| override void | OnAbort (BotEventBase e) |
| override void | OnAbort (BotEventBase e) |
| void | OnAbort (BotEventBase e) |
| override void | OnEntry (BotEventBase e) |
| override void | OnEntry (BotEventBase e) |
| override void | OnEntry (BotEventBase e) |
| override void | OnEntry (BotEventBase e) |
| override void | OnEntry (BotEventBase e) |
| override void | OnEntry (BotEventBase e) |
| override void | OnEntry (BotEventBase e) |
| override void | OnEntry (BotEventBase e) |
| override void | OnEntry (BotEventBase e) |
| override void | OnEntry (BotEventBase e) |
| override void | OnEntry (BotEventBase e) |
| override void | OnEntry (BotEventBase e) |
| override void | OnEntry (BotEventBase e) |
| void | OnEntry (BotEventBase e) |
| override void | OnExit (BotEventBase e) |
| override void | OnExit (BotEventBase e) |
| override void | OnExit (BotEventBase e) |
| override void | OnExit (BotEventBase e) |
| override void | OnExit (BotEventBase e) |
| override void | OnExit (BotEventBase e) |
| override void | OnExit (BotEventBase e) |
| override void | OnExit (BotEventBase e) |
| override void | OnExit (BotEventBase e) |
| override void | OnExit (BotEventBase e) |
| override void | OnExit (BotEventBase e) |
| override void | OnExit (BotEventBase e) |
| override void | OnExit (BotEventBase e) |
| void | OnExit (BotEventBase e) |
| void | OnStateChanged (BotStateBase src, BotStateBase dst) |
| void | OnSubMachineChanged (BotStateBase src, BotStateBase dst) |
| override void | OnUpdate (float dt) |
| override void | OnUpdate (float dt) |
| override void | OnUpdate (float dt) |
| override void | OnUpdate (float dt) |
| override void | OnUpdate (float dt) |
| override void | OnUpdate (float dt) |
| override void | OnUpdate (float dt) |
| override void | OnUpdate (float dt) |
| override void | OnUpdate (float dt) |
| override void | OnUpdate (float dt) |
| override void | OnUpdate (float dt) |
| override void | OnUpdate (float dt) |
| override void | OnUpdate (float dt) |
| void | OnUpdate (float dt) |
| bool | ProcessEvent (BotEventBase e) |
| void | SelectTarget () |
| void | SetParentState (BotStateBase parent) |
Private Attributes | |
| ref BotTestAttachAndDropCycle_Attaching | m_Attaching |
| Bot | m_Bot |
| man that this state belongs to | |
| ref BotTestAttachAndDropCycle_Detaching | m_Detaching |
| float | m_dtAccumulator = 0.0 |
| EntityAI | m_Entity |
| ref BotFSM | m_FSM |
| hierarchical parent state of this state (or null) | |
| int | m_hgSlot = InventorySlots.GetSlotIdFromString("Headgear") |
| ref BotHunt_Hunting | m_Hunting |
| ref BotTestItemMoveBackAndForth_MoveFromSlotToSlot | m_Move |
| int | m_mskSlot = InventorySlots.GetSlotIdFromString("Mask") |
| ref BotOpenEntityInHands | m_Opening |
| PlayerBase | m_Owner |
| BotStateBase | m_ParentState |
| bot that this state belongs to | |
| ref BotSpawnEntityInHands | m_Spawning |
| ref HumanMovementState | m_State = new HumanMovementState() |
| EntityAI | m_Target |
| Man | m_Target |
| bool | m_TargetInSight = false |
| bool | m_TargetLost = false |
| bool | m_Tracking = true |
| ref BotHunt_Tracking | m_Tracking |
| string | m_Type |
| int | m_WaitingForSlot = InventorySlots.INVALID |
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 BotStateBase(), m_Bot, m_Owner, and m_ParentState.
Referenced by BotStateBase(), BotStateIdle::BotStateIdle(), BotTestSpamUserActions::BotTestSpamUserActions(), BotTestSwapG2H::BotTestSwapG2H(), BotTestSwapInternal::BotTestSwapInternal(), BotTestSwapInternalC2H::BotTestSwapInternalC2H(), Bot_TestSpawnOpen(), BotHunt(), BotSpawnEntityInHands(), BotStanceRandomizer(), BotTestAttachAndDropCycle(), BotTestItemMoveBackAndForth(), BotTimedWait(), GetParentState(), OnStateChanged(), OnSubMachineChanged(), and SetParentState().
|
inlineprivate |
Definition at line 43 of file botstates.c.
|
inlineprivate |
Definition at line 99 of file bot_testspawnandopencan.c.
References BotStateBase(), BotSpawnEntityInHands(), m_Bot, m_FSM, m_Opening, m_Spawning, and m_Type.
|
inlineprivate |
Definition at line 23 of file bot_hunt.c.
References BotStateBase(), m_Bot, m_FSM, m_Hunting, and m_Tracking.
|
inlineprivate |
Definition at line 7 of file bot_testspawnandopencan.c.
References BotStateBase(), Empty, and m_Type.
Referenced by Bot_TestSpawnOpen().
|
inlineprivate |
Definition at line 7 of file bot_stancerandomizer.c.
References BotStateBase().
|
inlineprivate |
Definition at line 11 of file bot_testattachanddropcycle.c.
References BotStateBase(), m_Attaching, m_Bot, m_Detaching, and m_FSM.
|
inlineprivate |
Definition at line 6 of file bot_testitemmovebackandforth.c.
References BotStateBase(), m_Bot, m_FSM, and m_Move.
|
inlineprotected |
Definition at line 10 of file bot_timedwait.c.
References BotStateBase(), and m_Timeout.
|
inlineprivate |
Definition at line 31 of file botstates.c.
References m_FSM.
Definition at line 80 of file bot_testitemmovebackandforth.c.
References Error(), InventorySlots::INVALID, m_hgSlot, and m_mskSlot.
Referenced by OnUpdate().
|
inlineprivate |
Definition at line 28 of file botstates.c.
References BotStateBase(), and m_ParentState.
|
inlineprivate |
Definition at line 19 of file botstates.c.
References m_Owner.
Referenced by OnUpdate(), and SelectTarget().
|
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 183 of file bot_hunt.c.
|
inlineprivate |
Definition at line 105 of file bot_hunt.c.
References m_TargetInSight, m_TargetLost, and m_Tracking.
|
inlineprivate |
Definition at line 97 of file bot_testattachanddropcycle.c.
|
inlineprivate |
Definition at line 61 of file bot_testattachanddropcycle.c.
|
inlineprivate |
Definition at line 73 of file bot_testitemmovebackandforth.c.
|
inlineprivate |
Definition at line 131 of file bot_testspawnandopencan.c.
|
inlineprivate |
Definition at line 66 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 178 of file bot_hunt.c.
|
inlineprivate |
Definition at line 96 of file bot_hunt.c.
References m_TargetInSight, m_TargetLost, and m_Tracking.
|
inlineprivate |
Definition at line 50 of file bot_hunt.c.
References m_dtAccumulator, and SelectTarget().
|
inlineprivate |
Definition at line 11 of file bot_stancerandomizer.c.
References m_dtAccumulator.
|
inlineprivate |
Definition at line 92 of file bot_testattachanddropcycle.c.
|
inlineprivate |
Definition at line 56 of file bot_testattachanddropcycle.c.
|
inlineprivate |
Definition at line 30 of file bot_testattachanddropcycle.c.
References m_Attaching, m_Detaching, m_Entity, and m_Owner.
|
inlineprivate |
Definition at line 68 of file bot_testitemmovebackandforth.c.
|
inlineprivate |
Definition at line 22 of file bot_testitemmovebackandforth.c.
References Error(), GameInventory::FindAttachment(), InventoryLocation::GetSlot(), InventorySlots::GetSlotIdFromString(), m_Entity, m_Move, and m_Owner.
|
inlineprivate |
Definition at line 130 of file bot_testspawnandopencan.c.
|
inlineprivate |
Definition at line 120 of file bot_testspawnandopencan.c.
|
inlineprivate |
Definition at line 46 of file bot_testspawnandopencan.c.
References botDebugPrint(), BotEventBase::m_Entity, m_Entity, and m_Owner.
|
inlineprivate |
Definition at line 15 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 185 of file bot_hunt.c.
|
inlineprivate |
Definition at line 114 of file bot_hunt.c.
References m_TargetInSight, m_TargetLost, and m_Tracking.
|
inlineprivate |
Definition at line 58 of file bot_hunt.c.
References m_dtAccumulator, and m_Target.
|
inlineprivate |
Definition at line 18 of file bot_stancerandomizer.c.
References m_dtAccumulator.
|
inlineprivate |
Definition at line 99 of file bot_testattachanddropcycle.c.
|
inlineprivate |
Definition at line 63 of file bot_testattachanddropcycle.c.
|
inlineprivate |
Definition at line 39 of file bot_testattachanddropcycle.c.
References m_Entity.
|
inlineprivate |
Definition at line 75 of file bot_testitemmovebackandforth.c.
|
inlineprivate |
Definition at line 48 of file bot_testitemmovebackandforth.c.
References m_Entity.
|
inlineprivate |
Definition at line 132 of file bot_testspawnandopencan.c.
|
inlineprivate |
Definition at line 121 of file bot_testspawnandopencan.c.
|
inlineprivate |
Definition at line 68 of file bot_testspawnandopencan.c.
|
inlineprivate |
Definition at line 25 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 |
Definition at line 126 of file botstates.c.
References BotStateBase().
|
inlineprivate |
Definition at line 119 of file botstates.c.
References BotStateBase().
|
inlineprotected |
Definition at line 47 of file bot_timedwait.c.
References botDebugSpam(), m_Bot, and m_Owner.
|
inlineprivate |
Definition at line 190 of file bot_hunt.c.
|
inlineprivate |
Definition at line 123 of file bot_hunt.c.
References botDebugPrint(), vector::Distance(), GetPlayerOwner(), GetPosition(), m_Owner, m_Target, m_TargetInSight, m_TargetLost, and m_Tracking.
|
inlineprivate |
Definition at line 66 of file bot_hunt.c.
References m_dtAccumulator, m_Target, Print(), and SelectTarget().
|
inlineprivate |
Definition at line 25 of file bot_stancerandomizer.c.
References HumanCommandMove::ForceStance(), GetPlayerOwner(), HumanCommandMove::IsChangingStance(), m_dtAccumulator, and m_State.
|
inlineprivate |
Definition at line 104 of file bot_testattachanddropcycle.c.
References botDebugPrint(), InventoryLocation::GetType(), m_Bot, m_Entity, and m_Owner.
|
inlineprivate |
Definition at line 68 of file bot_testattachanddropcycle.c.
References botDebugPrint(), InventoryLocation::GetType(), m_Bot, m_Entity, and m_Owner.
|
inlineprivate |
Definition at line 46 of file bot_testattachanddropcycle.c.
|
inlineprivate |
Definition at line 90 of file bot_testitemmovebackandforth.c.
References botDebugPrint(), GetNextSlot(), InventoryLocation::GetSlot(), InventoryLocation::GetType(), m_Entity, m_Owner, and m_WaitingForSlot.
|
inlineprivate |
Definition at line 55 of file bot_testitemmovebackandforth.c.
|
inlineprivate |
Definition at line 134 of file bot_testspawnandopencan.c.
References botDebugPrint(), botDebugSpam(), m_Bot, and m_Owner.
|
inlineprivate |
Definition at line 122 of file bot_testspawnandopencan.c.
|
inlineprivate |
Definition at line 73 of file bot_testspawnandopencan.c.
References botDebugPrint(), botDebugSpam(), string::IndexOf(), m_Bot, and m_Owner.
|
inlineprivate |
Definition at line 27 of file bot_testspawnandopencan.c.
References botDebugPrint(), m_Bot, and m_Owner.
|
inlineprotected |
Definition at line 29 of file bot_timedwait.c.
References m_dtAccumulator, m_Periodic, m_Timeout, and OnTimeout().
|
inlineprivate |
Definition at line 73 of file botstates.c.
|
inlineprivate |
Definition at line 33 of file botstates.c.
|
inlineprivate |
Definition at line 42 of file bot_hunt.c.
References botDebugPrint(), BotSelectNearestTarget(), GetPlayerOwner(), m_Hunting, m_Owner, m_Target, and m_Tracking.
Referenced by OnEntry(), and OnUpdate().
|
inlineprivate |
Definition at line 24 of file botstates.c.
References BotStateBase(), and m_ParentState.
|
private |
Definition at line 9 of file bot_testattachanddropcycle.c.
Referenced by BotTestAttachAndDropCycle(), and OnEntry().
|
private |
man that this state belongs to
Definition at line 13 of file botstates.c.
Referenced by BotStateBase(), BotStateIdle::BotStateIdle(), BotTestSpamUserActions::BotTestSpamUserActions(), Bot_TestSpawnOpen(), BotHunt(), BotTestAttachAndDropCycle(), BotTestItemMoveBackAndForth(), OnTimeout(), and OnUpdate().
|
private |
Definition at line 8 of file bot_testattachanddropcycle.c.
Referenced by BotTestAttachAndDropCycle(), and OnEntry().
|
private |
Definition at line 18 of file bot_hunt.c.
Referenced by OnEntry(), OnExit(), and OnUpdate().
|
private |
Definition at line 7 of file bot_testattachanddropcycle.c.
Referenced by OnEntry(), OnExit(), and OnUpdate().
|
private |
hierarchical parent state of this state (or null)
Definition at line 15 of file botstates.c.
Referenced by BotTestSpamUserActions::BotTestSpamUserActions(), AddTransition(), Bot_TestSpawnOpen(), BotHunt(), BotTestAttachAndDropCycle(), BotTestItemMoveBackAndForth(), GetFSM(), HasFSM(), IsWaitingForActionFinish(), OnAbort(), OnEntry(), OnUpdate(), and ProcessEvent().
|
private |
Definition at line 65 of file bot_testitemmovebackandforth.c.
Referenced by GetNextSlot().
|
private |
Definition at line 21 of file bot_hunt.c.
Referenced by BotHunt(), and SelectTarget().
|
private |
Definition at line 4 of file bot_testitemmovebackandforth.c.
Referenced by BotTestItemMoveBackAndForth(), and OnEntry().
|
private |
Definition at line 66 of file bot_testitemmovebackandforth.c.
Referenced by GetNextSlot().
|
private |
Definition at line 97 of file bot_testspawnandopencan.c.
Referenced by Bot_TestSpawnOpen().
|
private |
Definition at line 12 of file botstates.c.
Referenced by BotStateBase(), BotStateIdle::BotStateIdle(), GetPlayerOwner(), OnEntry(), BotTestSpamUserActions::OnEntry(), BotTestSwapG2H::OnEntry(), BotTestSwapInternal::OnEntry(), BotTestSwapInternalC2H::OnEntry(), OnTimeout(), OnUpdate(), BotTestSwapInternal::OnUpdate(), BotTestSwapInternalC2H::OnUpdate(), and SelectTarget().
|
private |
bot that this state belongs to
Definition at line 14 of file botstates.c.
Referenced by BotStateBase(), BotStateIdle::BotStateIdle(), GetParentState(), and SetParentState().
|
protected |
Definition at line 8 of file bot_timedwait.c.
Referenced by OnUpdate().
|
private |
Definition at line 96 of file bot_testspawnandopencan.c.
Referenced by Bot_TestSpawnOpen().
|
private |
Definition at line 3 of file bot_stancerandomizer.c.
Referenced by OnUpdate().
|
private |
Definition at line 91 of file bot_hunt.c.
|
private |
Definition at line 17 of file bot_hunt.c.
Referenced by OnExit(), OnUpdate(), and SelectTarget().
|
private |
Definition at line 92 of file bot_hunt.c.
Referenced by OnAbort(), OnEntry(), OnExit(), and OnUpdate().
|
private |
Definition at line 93 of file bot_hunt.c.
Referenced by OnAbort(), OnEntry(), OnExit(), and OnUpdate().
|
protected |
Definition at line 7 of file bot_timedwait.c.
Referenced by BotTimedWait(), and OnUpdate().
|
private |
Definition at line 94 of file bot_hunt.c.
|
private |
Definition at line 20 of file bot_hunt.c.
Referenced by BotHunt(), OnAbort(), OnEntry(), OnExit(), OnUpdate(), and SelectTarget().
|
private |
Definition at line 5 of file bot_testspawnandopencan.c.
Referenced by Bot_TestSpawnOpen(), BotSpawnEntityInHands(), and OnEntry().
|
private |
Definition at line 64 of file bot_testitemmovebackandforth.c.
Referenced by OnUpdate().