represent weapon state base More...
Private Member Functions | |
void | BotHunt (Bot bot=NULL, BotStateBase parent=NULL) |
void | SelectTarget () |
override void | OnEntry (BotEventBase e) |
override void | OnExit (BotEventBase e) |
override void | OnUpdate (float dt) |
override void | OnEntry (BotEventBase e) |
override void | OnAbort (BotEventBase e) |
override void | OnExit (BotEventBase e) |
override void | OnUpdate (float dt) |
override void | OnEntry (BotEventBase e) |
override void | OnAbort (BotEventBase e) |
override void | OnExit (BotEventBase e) |
override void | OnUpdate (float dt) |
void | BotStanceRandomizer (Bot bot=NULL, BotStateBase parent=NULL) |
override void | OnEntry (BotEventBase e) |
override void | OnExit (BotEventBase e) |
override void | OnUpdate (float dt) |
void | BotTestAttachAndDropCycle (Bot bot=NULL, BotStateBase parent=NULL) |
override void | OnEntry (BotEventBase e) |
override void | OnExit (BotEventBase e) |
override void | OnUpdate (float dt) |
override void | OnEntry (BotEventBase e) |
override void | OnAbort (BotEventBase e) |
override void | OnExit (BotEventBase e) |
override void | OnUpdate (float dt) |
override void | OnEntry (BotEventBase e) |
override void | OnAbort (BotEventBase e) |
override void | OnExit (BotEventBase e) |
override void | OnUpdate (float dt) |
void | BotTestItemMoveBackAndForth (Bot bot=NULL, BotStateBase parent=NULL) |
override void | OnEntry (BotEventBase e) |
override void | OnExit (BotEventBase e) |
override void | OnUpdate (float dt) |
override void | OnEntry (BotEventBase e) |
override void | OnAbort (BotEventBase e) |
override void | OnExit (BotEventBase e) |
int | GetNextSlot (int curr) |
override void | OnUpdate (float dt) |
void | BotSpawnEntityInHands (Bot bot=NULL, BotStateBase parent=NULL, string new_type="") |
override void | OnEntry (BotEventBase e) |
override void | OnExit (BotEventBase e) |
override void | OnUpdate (float dt) |
override void | OnEntry (BotEventBase e) |
override void | OnAbort (BotEventBase e) |
override void | OnExit (BotEventBase e) |
override void | OnUpdate (float dt) |
void | Bot_TestSpawnOpen (Bot bot=NULL, BotStateBase parent=NULL, string new_type="") |
override void | OnEntry (BotEventBase e) |
override void | OnExit (BotEventBase e) |
override void | OnUpdate (float dt) |
override void | OnEntry (BotEventBase e) |
override void | OnAbort (BotEventBase e) |
override void | OnExit (BotEventBase e) |
override void | OnUpdate (float dt) |
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 () |
void | BotStateBase (Bot bot=NULL, BotStateBase parent=NULL) |
nested state machine (or null) | |
PlayerBase | GetPlayerOwner () |
void | SetParentState (BotStateBase parent) |
allows construction of hierarchical state machine | |
BotStateBase | GetParentState () |
bool | HasFSM () |
BotFSM | GetFSM () |
bool | ProcessEvent (BotEventBase e) |
void | AddTransition (FSMTransition< BotStateBase, BotEventBase, BotActionBase, BotGuardBase > t) |
adds transition into m_FSM transition table | |
void | OnEntry (BotEventBase e) |
void | OnUpdate (float dt) |
void | OnAbort (BotEventBase e) |
void | OnExit (BotEventBase e) |
bool | IsWaitingForActionFinish () |
waiting for active animation action/actionType finish | |
bool | IsIdle () |
idle state does not expect any animation events | |
void | OnSubMachineChanged (BotStateBase src, BotStateBase dst) |
called when sub-machine has changed its state | |
void | OnStateChanged (BotStateBase src, BotStateBase dst) |
called on current state when state machine has changed its state | |
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 |
ref HumanMovementState | m_State = new HumanMovementState() |
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 |
protected float | m_dtAccumulator = 0.0 |
protected float | m_Timeout = 3.0 |
protected bool | m_Periodic = true |
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.
|
inlineprivate |
nested state machine (or null)
References m_Bot, m_Owner, and m_ParentState.
|
inlineprivate |
|
inlineprivate |
References m_Type.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References Error(), InventorySlots::INVALID, m_hgSlot, and m_mskSlot.
Referenced by OnUpdate().
|
inlineprivate |
References m_ParentState.
|
inlineprivate |
References m_Owner.
Referenced by OnUpdate(), and SelectTarget().
|
inlineprivate |
References m_FSM.
Referenced by AddTransition(), IsWaitingForActionFinish(), OnAbort(), OnEntry(), OnUpdate(), and ProcessEvent().
|
inlineprivate |
idle state does not expect any animation events
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References botDebugPrint(), HasFSM(), m_FSM, ToString(), and Type.
|
inlineprivate |
References m_dtAccumulator, and SelectTarget().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References m_dtAccumulator, and WeaponFire::OnEntry().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References Error(), InventoryLocation::GetSlot(), InventorySlots::GetSlotIdFromString(), m_Entity, m_Entity, and m_Owner.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References botDebugPrint(), m_Entity, BotEventBase::m_Entity, and m_Owner.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References m_dtAccumulator, and WeaponFire::OnEntry().
|
inlineprivate |
References botDebugPrint(), HasFSM(), m_FSM, ToString(), and Type.
|
inlineprivate |
References m_dtAccumulator, and m_Target.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References m_dtAccumulator.
|
inlineprivate |
References m_Entity.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References m_Entity.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References m_dtAccumulator.
|
inlineprivate |
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) |
|
inlineprivate |
called when sub-machine has changed its state
[in] | src | from state (previous) |
[in] | dst | to state (current) |
|
inlineprivate |
References botDebugSpam(), and m_Owner.
Referenced by OnUpdate().
|
inlineprivate |
References m_dtAccumulator, m_dtAccumulator, m_Target, Print(), and SelectTarget().
|
inlineprivate |
References botDebugPrint(), vector::Distance(), GetPlayerOwner(), GetPosition, m_Owner, and m_Target.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References botDebugPrint(), InventoryLocation::GetType(), m_Entity, and m_Owner.
|
inlineprivate |
References botDebugPrint(), InventoryLocation::GetType(), m_Entity, and m_Owner.
|
inlineprivate |
|
inlineprivate |
References botDebugPrint(), GetNextSlot(), InventoryLocation::GetSlot(), InventoryLocation::GetType(), m_Entity, and m_Owner.
|
inlineprivate |
References botDebugPrint(), and m_Owner.
|
inlineprivate |
References botDebugPrint(), botDebugSpam(), string::IndexOf(), and m_Owner.
|
inlineprivate |
|
inlineprivate |
References botDebugPrint(), botDebugSpam(), and m_Owner.
|
inlineprivate |
References m_dtAccumulator, m_Timeout, and OnTimeout().
|
inlineprivate |
|
inlineprivate |
References botDebugPrint(), BotSelectNearestTarget(), GetPlayerOwner(), m_Owner, m_Target, and m_Target.
Referenced by OnEntry(), and OnUpdate().
|
inlineprivate |
allows construction of hierarchical state machine
References m_ParentState.
|
private |
|
private |
man that this state belongs to
Referenced by BotStateBase(), BotStateIdle::BotStateIdle(), and BotTestSpamUserActions::BotTestSpamUserActions().
|
private |
|
private |
Referenced by OnUpdate().
|
private |
|
private |
hierarchical parent state of this state (or null)
Referenced by AddTransition(), BotTestSpamUserActions::BotTestSpamUserActions(), GetFSM(), HasFSM(), IsWaitingForActionFinish(), OnAbort(), OnEntry(), OnUpdate(), and ProcessEvent().
|
private |
Referenced by GetNextSlot().
|
private |
|
private |
|
private |
Referenced by GetNextSlot().
|
private |
|
private |
|
private |
bot that this state belongs to
Referenced by BotStateBase(), BotStateIdle::BotStateIdle(), GetParentState(), and SetParentState().
|
private |
|
private |
|
private |
|
private |
Referenced by SelectTarget().
|
private |
|
private |
|
private |
|
private |
Referenced by OnUpdate().
|
private |
|
private |
|
private |
|
private |