DayZ 1.24
Loading...
Searching...
No Matches
ActionBaseCB Class Reference
Inheritance diagram for ActionBaseCB:
[legend]
Collaboration diagram for ActionBaseCB:
[legend]

Protected Member Functions

void ActionBaseCB ()
 
int GetPossileStanceMask ()
 
override void OnFinish (bool pCanceled)
 
void SetCommand (int command_uid)
 
void CreateActionComponent ()
 
void InitActionComponent ()
 
void ProgressActionComponent ()
 
void EndActionComponent ()
 
void Interrupt ()
 
void SetActionData (ActionData action_data)
 
override bool IsUserActionCallback ()
 
float GetActionComponentProgress ()
 
int GetActionState ()
 
ActionTarget GetTarget ()
 

Protected Attributes

ActionData m_ActionData
 
SoundOnVehicle m_SoundObject
 
bool m_Canceled
 
bool m_Interrupted
 

Additional Inherited Members

- Private Member Functions inherited from HumanCommandActionCallback
void PluginDayzPlayerActionCallback ()
 
void ~PluginDayzPlayerActionCallback ()
 
override void OnFinish (bool pCanceled)
 
bool CancelCondition ()
 
override void OnAnimationEvent (int pEventID)
 
override void OnStateChange (int pOldState, int pCurrentState)
 
- Private Attributes inherited from HumanCommandActionCallback
float m_fTimeStart
 
TextWidget m_pStateWidget
 
TextWidget m_pAnimEventWidget
 
TextListboxWidget m_EventsHistory
 
- Static Private Attributes inherited from HumanCommandActionCallback
static ref set< stringm_AnimEventMapping
 

Detailed Description

Definition at line 1 of file AnimatedActionBase.c.

Constructor & Destructor Documentation

◆ ActionBaseCB()

void ActionBaseCB::ActionBaseCB ( )
inlineprotected

Definition at line 9 of file AnimatedActionBase.c.

10 {
11 }

Member Function Documentation

◆ CreateActionComponent()

void ActionBaseCB::CreateActionComponent ( )
inlineprotected

Definition at line 49 of file AnimatedActionBase.c.

50 {
52 }
ActionData m_ActionData
ref CABase m_ActionComponent
Definition ActionBase.c:30

References ActionData::m_ActionComponent, and m_ActionData.

Referenced by ActionContinuousBaseCB::InitActionComponent().

◆ EndActionComponent()

void ActionBaseCB::EndActionComponent ( )
inlineprotected

Definition at line 64 of file AnimatedActionBase.c.

65 {
66 }

◆ GetActionComponentProgress()

float ActionBaseCB::GetActionComponentProgress ( )
inlineprotected

Definition at line 101 of file AnimatedActionBase.c.

102 {
104 return m_ActionData.m_ActionComponent.GetProgress();
105 return 0;
106 }

References ActionData::m_ActionComponent, and m_ActionData.

◆ GetActionState()

int ActionBaseCB::GetActionState ( )
inlineprotected

Definition at line 108 of file AnimatedActionBase.c.

109 {
110 return m_ActionData.m_State;
111 }

References m_ActionData, and ActionData::m_State.

◆ GetPossileStanceMask()

int ActionBaseCB::GetPossileStanceMask ( )
inlineprotected

Definition at line 13 of file AnimatedActionBase.c.

14 {
16 }
int m_PossibleStanceMask
Definition ActionBase.c:34

References m_ActionData, and ActionData::m_PossibleStanceMask.

◆ GetTarget()

ActionTarget ActionBaseCB::GetTarget ( )
inlineprotected

Definition at line 113 of file AnimatedActionBase.c.

114 {
115 return m_ActionData.m_Target;
116 }
ref ActionTarget m_Target
Definition ActionBase.c:32

References m_ActionData, and ActionData::m_Target.

◆ InitActionComponent()

void ActionBaseCB::InitActionComponent ( )
inlineprotected

Definition at line 54 of file AnimatedActionBase.c.

55 {
56 }

◆ Interrupt()

void ActionBaseCB::Interrupt ( )
inlineprotected

Definition at line 69 of file AnimatedActionBase.c.

70 {
71 if (GetGame().IsServer())
72 {
74 Debug.ActionLog("n/a", this.ToString(), "n/a", "Interrupt", m_ActionData.m_Player.ToString());
75 if (GetGame().IsMultiplayer())
77 }
78 else
79 {
81 {
84 ctx.Write(DayZPlayerConstants.CMD_ACTIONINT_INTERRUPT);
85 ctx.Send();
86 }
87 }
88 m_Interrupted = true;
89 }
const int INPUT_UDT_STANDARD_ACTION_END_REQUEST
Definition _constants.c:3
proto string ToString()
PlayerBase m_Player
Definition ActionBase.c:33
static void SendActionInterrupt(DayZPlayer pPlayer)
Definition Debug.c:14
static void ActionLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Definition Debug.c:143
static bool IsActionLogEnable()
Definition Debug.c:719
proto static native bool CanStoreInputUserData()
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597
proto native CGame GetGame()

References Debug::ActionLog(), ScriptInputUserData::CanStoreInputUserData(), GetGame(), INPUT_UDT_STANDARD_ACTION_END_REQUEST, LogManager::IsActionLogEnable(), m_ActionData, m_Interrupted, ActionData::m_Player, DayZPlayerSyncJunctures::SendActionInterrupt(), and ToString().

◆ IsUserActionCallback()

override bool ActionBaseCB::IsUserActionCallback ( )
inlineprotected

Definition at line 96 of file AnimatedActionBase.c.

97 {
98 return true;
99 }

◆ OnFinish()

override void ActionBaseCB::OnFinish ( bool pCanceled)
inlineprotected

Definition at line 19 of file AnimatedActionBase.c.

20 {
22 {
23 if (m_ActionData)
24 Debug.ActionLog("Time stamp: " + m_ActionData.m_Player.GetSimulationTimeStamp(), m_ActionData.m_Action.ToString(), "n/a", "OnFinish", m_ActionData.m_Player.ToString());
25 else
26 Debug.ActionLog("n/a", this.ToString(), "n/a", "OnFinish", "n/a");
27 }
28 if (m_SoundObject)
29 GetGame().ObjectDelete(m_SoundObject);
31 {
32 if (pCanceled)
34
36
37 if (action)
39 }
40 }
SoundOnVehicle m_SoundObject
ref ActionBase m_Action
Definition ActionBase.c:27

References Debug::ActionLog(), GetGame(), LogManager::IsActionLogEnable(), ActionData::m_Action, ActionData::m_ActionComponent, m_ActionData, ActionData::m_Player, m_SoundObject, ActionData::m_State, and ToString().

◆ ProgressActionComponent()

void ActionBaseCB::ProgressActionComponent ( )
inlineprotected

◆ SetActionData()

void ActionBaseCB::SetActionData ( ActionData action_data)
inlineprotected

Definition at line 91 of file AnimatedActionBase.c.

92 {
94 }

References m_ActionData.

◆ SetCommand()

void ActionBaseCB::SetCommand ( int command_uid)
inlineprotected

Member Data Documentation

◆ m_ActionData

ActionData ActionBaseCB::m_ActionData
protected

Definition at line 3 of file AnimatedActionBase.c.

Referenced by ActionContinuousBaseCB::CancelCondition(), ActionInteractLoopBaseCB::CancelCondition(), ActionInteractBaseCB::CreateActionComponent(), ActionInteractLoopBaseCB::CreateActionComponent(), ActionSingleUseBaseCB::CreateActionComponent(), ActionActivateTrapCB::CreateActionComponent(), ActionArmExplosiveCB::CreateActionComponent(), ActionAttachExplosivesTriggerCB::CreateActionComponent(), ActionBreakLongWoodenStickCB::CreateActionComponent(), ActionBuildOvenCB::CreateActionComponent(), ActionBuildPartCB::CreateActionComponent(), ActionBuildStoneCircleCB::CreateActionComponent(), ActionBuryAshesCB::CreateActionComponent(), ActionBuryBodyCB::CreateActionComponent(), ActionConsumeCB::CreateActionComponent(), ActionCookOnStickCB::CreateActionComponent(), ActionCoverHeadSelfCB::CreateActionComponent(), ActionCoverHeadTargetCB::CreateActionComponent(), ActionCraftCB::CreateActionComponent(), ActionCraftArmbandCB::CreateActionComponent(), ActionCraftBoltsCB::CreateActionComponent(), ActionCraftBoltsFeatherCB::CreateActionComponent(), ActionCraftBoneKnifeCB::CreateActionComponent(), ActionCraftBoneKnifeEnvCB::CreateActionComponent(), ActionCraftImprovisedEyePatchCB::CreateActionComponent(), ActionCraftImprovisedFaceCoverCB::CreateActionComponent(), ActionCraftImprovisedFeetCoverCB::CreateActionComponent(), ActionCraftImprovisedHandsCoverCB::CreateActionComponent(), ActionCraftImprovisedHeadCoverCB::CreateActionComponent(), ActionCraftImprovisedLegsCoverCB::CreateActionComponent(), ActionCraftImprovisedTorsoCoverCB::CreateActionComponent(), ActionCraftRopeBeltCB::CreateActionComponent(), ActionCraftStoneKnifeEnvCB::CreateActionComponent(), ActionCreateGreenhouseGardenPlotCB::CreateActionComponent(), ActionDeCraftDrysackBagCB::CreateActionComponent(), ActionDeCraftRopeBeltCB::CreateActionComponent(), ActionDeCraftWitchHoodCoifCB::CreateActionComponent(), ActionDestroyCombinationLockCB::CreateActionComponent(), ActionDestroyPartCB::CreateActionComponent(), ActionDialCombinationLockCB::CreateActionComponent(), ActionDialCombinationLockOnTargetCB::CreateActionComponent(), ActionDigInStashCB::CreateActionComponent(), ActionDigOutStashCB::CreateActionComponent(), ActionDigWormsCB::CreateActionComponent(), ActionDisarmExplosiveCB::CreateActionComponent(), ActionDisarmExplosiveWithRemoteDetonatorCB::CreateActionComponent(), ActionDisarmExplosiveWithRemoteDetonatorUnpairedCB::CreateActionComponent(), ActionDisarmMineCB::CreateActionComponent(), ActionDisinfectPlantCB::CreateActionComponent(), ActionDismantleGardenPlotCB::CreateActionComponent(), ActionDismantleOvenCB::CreateActionComponent(), ActionDismantlePartCB::CreateActionComponent(), ActionDismantleStoneCircleCB::CreateActionComponent(), ActionDrainLiquidCB::CreateActionComponent(), ActionDrinkCB::CreateActionComponent(), ActionDrinkPondContinuousCB::CreateActionComponent(), ActionDrinkWellContinuousCB::CreateActionComponent(), ActionEatBigCB::CreateActionComponent(), ActionEatCB::CreateActionComponent(), ActionEatSmallCB::CreateActionComponent(), ActionEatCanCB::CreateActionComponent(), ActionEatSmallCanCB::CreateActionComponent(), ActionEatFruitCB::CreateActionComponent(), ActionEatMeatCB::CreateActionComponent(), ActionEmptyBottleBaseCB::CreateActionComponent(), ActionExtinguishFireplaceByExtinguisherCB::CreateActionComponent(), ActionExtinguishFireplaceByLiquidCB::CreateActionComponent(), ActionFertilizeSlotCB::CreateActionComponent(), ActionFillBottleBaseCB::CreateActionComponent(), ActionFillGeneratorTankCB::CreateActionComponent(), ActionFillObjectCB::CreateActionComponent(), ActionFoldBaseBuildingObjectCB::CreateActionComponent(), ActionForceConsumeCB::CreateActionComponent(), ActionForceDrinkCB::CreateActionComponent(), ActionForceFeedCB::CreateActionComponent(), ActionForceFeedSmallCB::CreateActionComponent(), ActionForceFeedMeatCB::CreateActionComponent(), ActionIgniteFireplaceByAirCB::CreateActionComponent(), ActionLightItemOnFireCB::CreateActionComponent(), ActionLightItemOnFireWithBlowtorchCB::CreateActionComponent(), ActionLoadMagazineCB::CreateActionComponent(), ActionLoadMagazineQuickCB::CreateActionComponent(), ActionLockDoorsCB::CreateActionComponent(), ActionMineBushCB::CreateActionComponent(), ActionMineRockCB::CreateActionComponent(), ActionMountBarbedWireCB::CreateActionComponent(), ActionPackGiftCB::CreateActionComponent(), ActionPlaceOnGroundCB::CreateActionComponent(), ActionPourLiquidCB::CreateActionComponent(), ActionManipulateFlagCB::CreateActionComponent(), ActionRaiseMegaphoneCB::CreateActionComponent(), ActionRepairCarChassisCB::CreateActionComponent(), ActionRepairCarChassisWithBlowtorchCB::CreateActionComponent(), ActionRepairCarEngineCB::CreateActionComponent(), ActionRepairCarEngineWithBlowtorchCB::CreateActionComponent(), ActionRepairCarPartCB::CreateActionComponent(), ActionRepairCarPartWithBlowtorchCB::CreateActionComponent(), ActionRepairItemWithBlowtorchCB::CreateActionComponent(), ActionRepairPartCB::CreateActionComponent(), ActionRepairTentCB::CreateActionComponent(), ActionRepairTentPartCB::CreateActionComponent(), ActionRestrainSelfCB::CreateActionComponent(), ActionRestrainTargetCB::CreateActionComponent(), ActionSawPlanksCB::CreateActionComponent(), ActionShaveCB::CreateActionComponent(), ActionShaveTargetCB::CreateActionComponent(), ActionSkinningCB::CreateActionComponent(), ActionSortAmmoPileCB::CreateActionComponent(), ActionStripCarrierVestCB::CreateActionComponent(), ActionTransferLiquidCB::CreateActionComponent(), ActionTuneFrequencyCB::CreateActionComponent(), ActionTuneRadioStationCB::CreateActionComponent(), ActionTurnValveCB::CreateActionComponent(), ActionTurnValveUndergroundReservoirCB::CreateActionComponent(), ActionUncoverHeadSelfCB::CreateActionComponent(), ActionUncoverHeadTargetCB::CreateActionComponent(), ActionUnlockDoorsCB::CreateActionComponent(), ActionUnmountBarbedWireCB::CreateActionComponent(), ActionUnpackBoxCB::CreateActionComponent(), ActionUnpackGiftCB::CreateActionComponent(), ActionUnrestrainSelfCB::CreateActionComponent(), ActionUnrestrainTargetCB::CreateActionComponent(), ActionUnrestrainTargetHandsCB::CreateActionComponent(), ActionUpgradeTorchFromGasPumpCB::CreateActionComponent(), ActionUseRangefinderCB::CreateActionComponent(), ActionRaiseAndViewCB::CreateActionComponent(), ActionWashHandsItemContinuousCB::CreateActionComponent(), ActionWashHandsWaterCB::CreateActionComponent(), ActionWashHandsWellCB::CreateActionComponent(), ActionWaterGardenSlotCB::CreateActionComponent(), ActionWaterPlantCB::CreateActionComponent(), ActionWorldCraftCB::CreateActionComponent(), ActionWringClothesCB::CreateActionComponent(), ActionBandageSelfCB::CreateActionComponent(), ActionBandageTargetCB::CreateActionComponent(), ActionBurnSewSelfCB::CreateActionComponent(), ActionBurnSewTargetCB::CreateActionComponent(), ActionCheckPulseTargetCB::CreateActionComponent(), ActionCollectBloodSelfCB::CreateActionComponent(), ActionCollectBloodTargetCB::CreateActionComponent(), ActionCollectSampleSelfCB::CreateActionComponent(), ActionCollectSampleTargetCB::CreateActionComponent(), ActionCPRCB::CreateActionComponent(), ActionDefibrilateSelfCB::CreateActionComponent(), ActionDefibrilateTargetCB::CreateActionComponent(), ActionFeedVitaminBottleCB::CreateActionComponent(), ActionGiveBloodTargetCB::CreateActionComponent(), ActionGiveSalineSelfCB::CreateActionComponent(), ActionGiveSalineTargetCB::CreateActionComponent(), ActionMeasureTemperatureSelfCB::CreateActionComponent(), ActionMeasureTemperatureTargetCB::CreateActionComponent(), ActionSewSelfCB::CreateActionComponent(), ActionSewTargetCB::CreateActionComponent(), ActionSplintSelfCB::CreateActionComponent(), ActionSplintTargetCB::CreateActionComponent(), ActionTestBloodSelfCB::CreateActionComponent(), ActionTestBloodTargetCB::CreateActionComponent(), ActionFillBrakesCB::CreateActionComponent(), ActionFillCoolantCB::CreateActionComponent(), ActionFillFuelCB::CreateActionComponent(), ActionFillOilCB::CreateActionComponent(), ActionStartCarCB::CreateActionComponent(), ActionPackTentCB::CreateActionComponent(), ActionPickBerryCB::CreateActionComponent(), ActionRepackTentCB::CreateActionComponent(), ActionSetAlarmClockCB::CreateActionComponent(), ActionSetKitchenTimerCB::CreateActionComponent(), ActionWashHandsWaterOneCB::CreateActionComponent(), ActionWashHandsWellOneCB::CreateActionComponent(), ActionConsumeSingleCB::CreateActionComponent(), ActionDisinfectPlantBitCB::CreateActionComponent(), ActionForceABiteCB::CreateActionComponent(), ActionForceConsumeSingleCB::CreateActionComponent(), ActionReadPaperCB::CreateActionComponent(), ActionResetKitchenTimerClockCB::CreateActionComponent(), ActionTakeABiteCB::CreateActionComponent(), ActionTurnOffAlarmClockCB::CreateActionComponent(), ActionTurnOffTransmitterCB::CreateActionComponent(), ActionTurnOnAlarmClockCB::CreateActionComponent(), ActionTurnOnTransmitterCB::CreateActionComponent(), ActionWritePaperCB::CreateActionComponent(), ActionDisinfectSelfCB::CreateActionComponent(), ActionDisinfectTargetCB::CreateActionComponent(), CreateActionComponent(), ActionRepackTentCB::DropDuringRepacking(), ActionContinuousBaseCB::EndActionComponent(), ActionInteractBaseCB::EndActionComponent(), ActionSingleUseBaseCB::EndActionComponent(), ActionUnrestrainSelfCB::EndActionComponent(), ActionDropItemCB::EndActionComponent(), GetActionComponentProgress(), GetActionState(), ActionSawPlanksCB::GetDefaultTime(), GetPossileStanceMask(), GetTarget(), ActionContinuousBaseCB::InitActionComponent(), ActionInteractBaseCB::InitActionComponent(), ActionSingleUseBaseCB::InitActionComponent(), Interrupt(), ActionUnrestrainTargetCB::ObtainUnrestrainTime(), ActionContinuousBaseCB::OnAnimationEvent(), ActionInteractBaseCB::OnAnimationEvent(), ActionSingleUseBaseCB::OnAnimationEvent(), ActionUnfoldMapCB::OnAnimationEvent(), ActionUnfoldMapCB::OnFinish(), OnFinish(), ActionRaiseAndViewCB::OnStateChange(), ActionReadPaperCB::OnStateChange(), ActionUnfoldMapCB::OnStateChange(), ActionWritePaperCB::OnStateChange(), ActionUnfoldMapCB::PerformMapChange(), ProgressActionComponent(), ActionUnfoldMapCB::SetActionData(), SetActionData(), ActionContinuousBaseCB::UserEndsAction(), and ActionUnfoldMapCB::~ActionUnfoldMapCB().

◆ m_Canceled

◆ m_Interrupted

◆ m_SoundObject


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