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

Private Member Functions

void ActionMeasureBattery ()
 
override void CreateConditionComponents ()
 
override bool HasProneException ()
 
override bool HasTarget ()
 
override void OnExecuteServer (ActionData action_data)
 

Detailed Description

Definition at line 1 of file ActionMeasureBattery.c.

Constructor & Destructor Documentation

◆ ActionMeasureBattery()

void ActionMeasureBattery::ActionMeasureBattery ( )
inlineprivate

Definition at line 4 of file ActionMeasureBattery.c.

5 {
6 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_LICKBATTERY;
7 m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONFB_LICKBATTERY;
8 m_Text = "#lick_battery";
9 }
string m_Text
Definition ActionBase.c:49
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References AnimatedActionBase::m_CommandUID, AnimatedActionBase::m_CommandUIDProne, and m_Text.

Member Function Documentation

◆ CreateConditionComponents()

override void ActionMeasureBattery::CreateConditionComponents ( )
inlineprivate

Definition at line 11 of file ActionMeasureBattery.c.

12 {
15 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

◆ HasProneException()

override bool ActionMeasureBattery::HasProneException ( )
inlineprivate

Definition at line 17 of file ActionMeasureBattery.c.

18 {
19 return true;
20 }

◆ HasTarget()

override bool ActionMeasureBattery::HasTarget ( )
inlineprivate

Definition at line 22 of file ActionMeasureBattery.c.

23 {
24 return false;
25 }

◆ OnExecuteServer()

override void ActionMeasureBattery::OnExecuteServer ( ActionData action_data)
inlineprivate

Definition at line 27 of file ActionMeasureBattery.c.

28 {
29
30 float energy = 0;
31 if (action_data.m_MainItem.HasEnergyManager())
32 energy = action_data.m_MainItem.GetCompEM().GetEnergy();
33 action_data.m_MainItem.TransferModifiers(action_data.m_Player);
34 if (energy > 0)
36 if (energy == 0)
38 }
void InformPlayers(PlayerBase player, ActionTarget target, int state)
DEPRECATED delivers message ids to clients based on given context.
const int UA_FINISHED
Definition constants.c:436
const int UA_FAILED
Definition constants.c:433

References InformPlayers(), UA_FAILED, and UA_FINISHED.


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