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

Private Member Functions

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

Detailed Description

Definition at line 1 of file ActionFoldObject.c.

Constructor & Destructor Documentation

◆ ActionFoldObject()

void ActionFoldObject::ActionFoldObject ( )
inlineprivate

Definition at line 3 of file ActionFoldObject.c.

4 {
6 m_Text = "#fold";
7 }
string m_Text
Definition ActionBase.c:49
float m_SpecialtyWeight
Definition ActionBase.c:68

References m_SpecialtyWeight, m_Text, and UASoftSkillsWeight::ROUGH_MEDIUM.

Member Function Documentation

◆ ActionCondition()

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

Definition at line 19 of file ActionFoldObject.c.

20 {
21 Object targetObject = target.GetObject();
22 if (targetObject.IsInherited(HescoBox))
23 {
24 HescoBox hesco = HescoBox.Cast(targetObject);
25
26 if (hesco.GetState() == HescoBox.UNFOLDED)
27 return true;
28 }
29 return false;
30 }

◆ GetInputType()

override ActionFoldObject::GetInputType ( )
inlineprivate

Definition at line 9 of file ActionFoldObject.c.

◆ HasProgress()

override bool ActionFoldObject::HasProgress ( )
inlineprivate

Definition at line 14 of file ActionFoldObject.c.

15 {
16 return false;
17 }

◆ OnExecuteServer()

override void ActionFoldObject::OnExecuteServer ( ActionData action_data)
inlineprivate

Definition at line 32 of file ActionFoldObject.c.

33 {
34 Object targetObject = action_data.m_Target.GetObject();
35 HescoBox hesco = HescoBox.Cast(targetObject);
36 if (hesco.GetState() == HescoBox.UNFOLDED)
37 hesco.Fold();
38
39 action_data.m_Player.GetSoftSkillsManager().AddSpecialty(m_SpecialtyWeight);
40 }

References m_SpecialtyWeight.


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