DayZ 1.24
Loading...
Searching...
No Matches
ActionContinuousBase Class Reference

Inherits AnimatedActionBase.

Inherited by ActionBandageBase [private], ActionBreakLongWoodenStick [private], ActionBuildPart [private], ActionBuildShelter [private], ActionBurnSewSelf [private], ActionBurnSewTarget [private], ActionBuryBody [private], ActionCPR [private], ActionCarHornLong [private], ActionCheckPulseTarget [private], ActionCollectBloodSelf [private], ActionCollectBloodTarget [private], ActionCollectSampleSelf [private], ActionCollectSampleTarget [private], ActionConsume [private], ActionCookOnStick [private], ActionCoverHeadSelf [private], ActionCoverHeadTarget [private], ActionCraft [private], ActionCraftBolts [private], ActionCraftBoltsFeather [private], ActionCraftBoneKnife [private], ActionCraftBoneKnifeEnv [private], ActionCraftImprovisedEyePatch [private], ActionCraftImprovisedFaceCover [private], ActionCraftImprovisedFeetCover [private], ActionCraftImprovisedHandsCover [private], ActionCraftImprovisedHeadCover [private], ActionCraftImprovisedLegsCover [private], ActionCraftImprovisedTorsoCover [private], ActionCraftRopeBelt [private], ActionCraftStoneKnifeEnv [private], ActionCreateGreenhouseGardenPlot [private], ActionDeconstructShelter [private], ActionDefibrilateBase [private], ActionDeployBase [private], ActionDestroyCombinationLock [private], ActionDestroyPart [private], ActionDigInStash [private], ActionDigWorms [private], ActionDisinfectBase [private], ActionDisinfectPlant [private], ActionDismantleGardenPlot [private], ActionDismantlePart [private], ActionDrainLiquid [private], ActionEmptyBottleBase [private], ActionEmptyMagazine [private], ActionFertilizeSlot [private], ActionFillBottleBase [private], ActionFillBrakes [private], ActionFillCoolant [private], ActionFillFuel [private], ActionFillGeneratorTank [private], ActionFillObject [private], ActionFillOil [private], ActionFishingNew [private], ActionGagSelf [private], ActionGagTarget [private], ActionGiveBloodSelf [private], ActionGiveBloodTarget [private], ActionGiveSalineSelf [private], ActionGiveSalineTarget [private], ActionIgniteFireplaceByAir [private], ActionLoadMagazine [private], ActionLoadMagazineQuick [private], ActionLockAttachment [private], ActionLockDoors [private], ActionLowerFlag [private], ActionMeasureTemperatureSelf [private], ActionMeasureTemperatureTarget [private], ActionMineBase [private], ActionMountBarbedWire [private], ActionPackGift [private], ActionPlaceOnGround [private], ActionPourLiquid [private], ActionPushCar [private], ActionRaiseFlag [private], ActionReadPaper [private], ActionRepackTent [private], ActionRepairCarChassis [private], ActionRepairTent [private], ActionRepairTentPart [private], ActionRestrainSelf [private], ActionRestrainTarget [private], ActionSawPlanks [private], ActionSetAlarmClock [private], ActionSetKitchenTimer [private], ActionShave [private], ActionShaveTarget [private], ActionSortAmmoPile [private], ActionSplintSelf [private], ActionSplintTarget [private], ActionStripCarrierVest [private], ActionTestBloodSelf [private], ActionTestBloodTarget [private], ActionTransferLiquid [private], ActionUncoverHeadBase [private], ActionUngagSelf [private], ActionUngagTarget [private], ActionUnlockDoors [private], ActionUnmountBarbedWire [private], ActionUnpackBox [private], ActionUnpackGift [private], ActionUnrestrainSelf [private], ActionUnrestrainTarget [private], ActionUnrestrainTargetHands [private], ActionUpgradeTorchFromGasPump [private], ActionUseRangefinder [private], ActionViewCompass [private], ActionViewOptics [private], ActionWashHandsItemContinuous [private], ActionWaterGardenSlot [private], ActionWaterPlant [private], ActionWorldCraft [private], ActionWringClothes [private], and ActionWritePaper [private].

Collaboration diagram for ActionContinuousBase:
[legend]

Protected Member Functions

void OnStartAnimationLoopServer (ActionData action_data)
 
void OnStartAnimationLoopClient (ActionData action_data)
 
void OnEndAnimationLoopServer (ActionData action_data)
 
void OnEndAnimationLoopClient (ActionData action_data)
 
void OnFinishProgressServer (ActionData action_data)
 
void OnFinishProgressClient (ActionData action_data)
 

Private Member Functions

void ActionContinuousBase ()
 
override void OnEndInput (ActionData action_data)
 
bool HasAlternativeInterrupt ()
 
override GetInputType ()
 
override int GetActionCategory ()
 
void OnStartAnimationLoop (ActionData action_data)
 
void OnEndAnimationLoop (ActionData action_data)
 
void OnFinishProgress (ActionData action_data)
 
- Private Member Functions inherited from AnimatedActionBase
void AnimatedActionBase ()
 
void OnAlternativeEndServer (PlayerBase player)
 
void OnAlternativeEndClient (PlayerBase player)
 
void OnInterruptServer (PlayerBase player)
 
void OnInterruptClient (PlayerBase player)
 
void OnExecute (ActionData action_data)
 
void OnExecuteServer (ActionData action_data)
 
void OnExecuteClient (ActionData action_data)
 
void OnAnimationEvent (ActionData action_data)
 
override bool ActionConditionContinue (ActionData action_data)
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
int GetActionCommand (PlayerBase player)
 
 GetCallbackClassTypename ()
 
override bool HasProneException ()
 
void CreateAndSetupActionCallback (ActionData action_data)
 
override void Start (ActionData action_data)
 
override void Interrupt (ActionData action_data)
 
void OnJumpStart ()
 
void Do (ActionData action_data, int state)
 
override void End (ActionData action_data)
 
override float GetProgress (ActionData action_data)
 

Private Attributes

PluginAdminLog m_AdminLog
 
- Private Attributes inherited from AnimatedActionBase
int m_CommandUID
 
int m_CommandUIDProne
 
 m_CallbackClass
 

Detailed Description

Definition at line 118 of file ActionContinuousBase.c.

Constructor & Destructor Documentation

◆ ActionContinuousBase()

void ActionContinuousBase::ActionContinuousBase ( )
inlineprivate

Definition at line 122 of file ActionContinuousBase.c.

123 {
125 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_EAT;
126
127 if (GetGame() && GetGame().IsServer())
128 m_AdminLog = PluginAdminLog.Cast(GetPlugin(PluginAdminLog));
129 }
PluginBase GetPlugin(typename plugin_type)
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597
proto native CGame GetGame()

References GetGame(), GetPlugin(), m_AdminLog, AnimatedActionBase::m_CallbackClass, and AnimatedActionBase::m_CommandUID.

Member Function Documentation

◆ GetActionCategory()

override int ActionContinuousBase::GetActionCategory ( )
inlineprivate

Definition at line 151 of file ActionContinuousBase.c.

152 {
153 return AC_CONTINUOUS;
154 }
const int AC_CONTINUOUS
Definition _constants.c:3

References AC_CONTINUOUS.

◆ GetInputType()

override ActionContinuousBase::GetInputType ( )
inlineprivate

Definition at line 146 of file ActionContinuousBase.c.

147 {
149 }
void ContinuousDefaultActionInput(PlayerBase player)

References ContinuousDefaultActionInput().

◆ HasAlternativeInterrupt()

bool ActionContinuousBase::HasAlternativeInterrupt ( )
inlineprivate

Definition at line 141 of file ActionContinuousBase.c.

142 {
143 return false;
144 }

◆ OnEndAnimationLoop()

void ActionContinuousBase::OnEndAnimationLoop ( ActionData action_data)
inlineprivate

Definition at line 168 of file ActionContinuousBase.c.

169 {
171 Debug.ActionLog("Time stamp: " + action_data.m_Player.GetSimulationTimeStamp(), this.ToString(), "n/a", "OnEndAnimationLoop", action_data.m_Player.ToString());
172 if (GetGame().IsServer())
174 else
176 action_data.m_WasExecuted = false;
177 }
void OnEndAnimationLoopClient(ActionData action_data)
void OnEndAnimationLoopServer(ActionData action_data)
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

References Debug::ActionLog(), GetGame(), LogManager::IsActionLogEnable(), OnEndAnimationLoopClient(), and OnEndAnimationLoopServer().

◆ OnEndAnimationLoopClient()

void ActionContinuousBase::OnEndAnimationLoopClient ( ActionData action_data)
inlineprotected

Definition at line 209 of file ActionContinuousBase.c.

210 {
211 }

Referenced by OnEndAnimationLoop().

◆ OnEndAnimationLoopServer()

void ActionContinuousBase::OnEndAnimationLoopServer ( ActionData action_data)
inlineprotected

Definition at line 206 of file ActionContinuousBase.c.

207 {
208 }

Referenced by OnEndAnimationLoop().

◆ OnEndInput()

override void ActionContinuousBase::OnEndInput ( ActionData action_data)
inlineprivate

Definition at line 131 of file ActionContinuousBase.c.

132 {
134 if (Class.CastTo(callback, action_data.m_Callback))
135 {
136 if (callback.GetState() != callback.STATE_LOOP_END && callback.GetState() != callback.STATE_LOOP_END2)
137 callback.UserEndsAction();
138 }
139 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

References Class::CastTo().

◆ OnFinishProgress()

void ActionContinuousBase::OnFinishProgress ( ActionData action_data)
inlineprivate

Definition at line 179 of file ActionContinuousBase.c.

180 {
182 Debug.ActionLog("Time stamp: " + action_data.m_Player.GetSimulationTimeStamp(), this.ToString(), "n/a", "OnFinishProgress", action_data.m_Player.ToString());
183 if (GetGame().IsServer())
184 {
186
187 if (m_AdminLog)
188 m_AdminLog.OnContinouousAction(action_data);
189 }
190 else
192 action_data.m_WasExecuted = false;
193 }
void OnFinishProgressClient(ActionData action_data)
void OnFinishProgressServer(ActionData action_data)

References Debug::ActionLog(), GetGame(), LogManager::IsActionLogEnable(), m_AdminLog, OnFinishProgressClient(), and OnFinishProgressServer().

◆ OnFinishProgressClient()

void ActionContinuousBase::OnFinishProgressClient ( ActionData action_data)
inlineprotected

Definition at line 217 of file ActionContinuousBase.c.

218 {
219 }

Referenced by OnFinishProgress().

◆ OnFinishProgressServer()

void ActionContinuousBase::OnFinishProgressServer ( ActionData action_data)
inlineprotected

Definition at line 213 of file ActionContinuousBase.c.

214 {
215 }

Referenced by OnFinishProgress().

◆ OnStartAnimationLoop()

void ActionContinuousBase::OnStartAnimationLoop ( ActionData action_data)
inlineprivate

Definition at line 156 of file ActionContinuousBase.c.

157 {
159 Debug.ActionLog("Time stamp: " + action_data.m_Player.GetSimulationTimeStamp(), this.ToString(), "n/a", "OnStartAnimationLoop", action_data.m_Player.ToString());
160
161 if (GetGame().IsServer())
163 else
165 action_data.m_WasExecuted = false;
166 }
void OnStartAnimationLoopServer(ActionData action_data)
void OnStartAnimationLoopClient(ActionData action_data)

References Debug::ActionLog(), GetGame(), LogManager::IsActionLogEnable(), OnStartAnimationLoopClient(), and OnStartAnimationLoopServer().

◆ OnStartAnimationLoopClient()

void ActionContinuousBase::OnStartAnimationLoopClient ( ActionData action_data)
inlineprotected

Definition at line 201 of file ActionContinuousBase.c.

202 {
203 action_data.m_WasActionStarted = true;
204 }

Referenced by OnStartAnimationLoop().

◆ OnStartAnimationLoopServer()

void ActionContinuousBase::OnStartAnimationLoopServer ( ActionData action_data)
inlineprotected

Definition at line 196 of file ActionContinuousBase.c.

197 {
198 action_data.m_WasActionStarted = true;
199 }

Referenced by OnStartAnimationLoop().

Member Data Documentation

◆ m_AdminLog

PluginAdminLog ActionContinuousBase::m_AdminLog
private

Definition at line 120 of file ActionContinuousBase.c.

Referenced by ActionContinuousBase(), and OnFinishProgress().


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