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

Private Member Functions

void ActionUseUndergroundPanel ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnStartServer (ActionData action_data)
 

Detailed Description

Definition at line 1 of file ActionUseUndergroundPanel.c.

Constructor & Destructor Documentation

◆ ActionUseUndergroundPanel()

void ActionUseUndergroundPanel::ActionUseUndergroundPanel ( )
inlineprivate

Definition at line 3 of file ActionUseUndergroundPanel.c.

4 {
5 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_OPENDOORFW;
6 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
7 m_Text = "#use";
8 }
string m_Text
Definition ActionBase.c:49
int m_StanceMask
Definition ActionBase.c:53
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References AnimatedActionBase::m_CommandUID, m_StanceMask, and m_Text.

Member Function Documentation

◆ ActionCondition()

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

Definition at line 16 of file ActionUseUndergroundPanel.c.

17 {
18 if (item.IsDamageDestroyed())
19 return false;
20 Land_Underground_Panel trgt = Land_Underground_Panel.Cast(target.GetObject());
21
22 if (!trgt)
23 return false;
24
25 if (trgt.ClassName() != "Land_Underground_Panel")
26 return false;
27
28 return (trgt.CanInteract());
29 }

◆ CreateConditionComponents()

override void ActionUseUndergroundPanel::CreateConditionComponents ( )
inlineprivate

Definition at line 10 of file ActionUseUndergroundPanel.c.

11 {
14 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

◆ OnStartServer()

override void ActionUseUndergroundPanel::OnStartServer ( ActionData action_data)
inlineprivate

Definition at line 31 of file ActionUseUndergroundPanel.c.

32 {
33 Land_Underground_Panel target = Land_Underground_Panel.Cast(action_data.m_Target.GetObject());
34
35 if (!target)
36 return;
37
38 target.Interact();
39 PunchedCard.Cast(action_data.m_MainItem).OnUse();
40 }
void OnUse()
Definition PunchedCard.c:10

References PunchedCard::OnUse().


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