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

Private Member Functions

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

Detailed Description

Definition at line 11 of file ActionMineBush.c.

Constructor & Destructor Documentation

◆ ActionMineBush()

void ActionMineBush::ActionMineBush ( )
inlineprivate

Member Function Documentation

◆ ActionCondition()

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

Definition at line 28 of file ActionMineBush.c.

29 {
30 if (GetGame().IsMultiplayer() && GetGame().IsServer())
31 return true;
32
33 Object targetObject = target.GetObject();
34 return targetObject.IsBush() && targetObject.IsCuttable();
35 }
proto native CGame GetGame()

References GetGame().

◆ CreateConditionComponents()

override void ActionMineBush::CreateConditionComponents ( )
inlineprivate

Definition at line 22 of file ActionMineBush.c.

23 {
26 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
const float SMALL

References m_ConditionItem, m_ConditionTarget, and UAMaxDistances::SMALL.

◆ OnFinishProgressServer()

override void ActionMineBush::OnFinishProgressServer ( ActionData action_data)
inlineprivate

Definition at line 37 of file ActionMineBush.c.

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: