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

Private Member Functions

void ActionTuneFrequencyOnGround ()
 
override void OnActionInfoUpdate (PlayerBase player, ActionTarget target, ItemBase item)
 
override GetInputType ()
 
override bool HasProgress ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnExecuteServer (ActionData action_data)
 

Private Attributes

string m_RadioFreq
 

Detailed Description

Definition at line 1 of file ActionTuneFrequencyOnGround.c.

Constructor & Destructor Documentation

◆ ActionTuneFrequencyOnGround()

void ActionTuneFrequencyOnGround::ActionTuneFrequencyOnGround ( )
inlineprivate

Definition at line 5 of file ActionTuneFrequencyOnGround.c.

6 {
7 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_OPENDOORFW;
8 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
9 m_RadioFreq = string.Empty;
10 m_Text = "#tune_frequency";
11 }
string m_Text
Definition ActionBase.c:49
int m_StanceMask
Definition ActionBase.c:53
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597
static const string Empty
Definition EnString.c:7

References string::Empty, AnimatedActionBase::m_CommandUID, m_RadioFreq, m_StanceMask, and m_Text.

Member Function Documentation

◆ ActionCondition()

override bool ActionTuneFrequencyOnGround::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

Definition at line 30 of file ActionTuneFrequencyOnGround.c.

31 {
32 Object target_object = target.GetObject();
34 string selection = target_object.GetActionComponentName(target.GetComponentIndex());
35
36 if (transmitter.GetCompEM().IsWorking() && selection == "control_panel")
37 {
38 //transmitter.DisplayRadioInfo( transmitter.GetTunedFrequency().ToString(), player );
39 //m_RadioFreq = transmitter.GetTunedFrequency().ToString();
40
41 return true;
42 }
43
44 return false;
45 }

◆ GetInputType()

override ActionTuneFrequencyOnGround::GetInputType ( )
inlineprivate

◆ HasProgress()

override bool ActionTuneFrequencyOnGround::HasProgress ( )
inlineprivate

Definition at line 25 of file ActionTuneFrequencyOnGround.c.

26 {
27 return false;
28 }

◆ OnActionInfoUpdate()

override void ActionTuneFrequencyOnGround::OnActionInfoUpdate ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

Definition at line 13 of file ActionTuneFrequencyOnGround.c.

14 {
15 Object target_object = target.GetObject();
17 m_Text = "#tune_frequency | " + transmitter.GetTunedFrequency().ToString() + " MHz";
18 }

References m_Text.

◆ OnExecuteServer()

override void ActionTuneFrequencyOnGround::OnExecuteServer ( ActionData action_data)
inlineprivate

Definition at line 47 of file ActionTuneFrequencyOnGround.c.

48 {
50 transmitter.SetNextFrequency(action_data.m_Player);
51 }

Member Data Documentation

◆ m_RadioFreq

string ActionTuneFrequencyOnGround::m_RadioFreq
private

Definition at line 3 of file ActionTuneFrequencyOnGround.c.

Referenced by ActionTuneFrequencyOnGround().


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