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

Private Member Functions

void ActionBreakLongWoodenStick ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override bool HasTarget ()
 
override void OnFinishProgressServer (ActionData action_data)
 
- Private Member Functions inherited from ActionContinuousBase
void OnStartAnimationLoopServer (ActionData action_data)
 
void OnStartAnimationLoopClient (ActionData action_data)
 
void OnEndAnimationLoopServer (ActionData action_data)
 
void OnEndAnimationLoopClient (ActionData action_data)
 
void OnFinishProgressServer (ActionData action_data)
 
void OnFinishProgressClient (ActionData action_data)
 

Detailed Description

Definition at line 12 of file ActionBreakLongWoodenStick.c.

Constructor & Destructor Documentation

◆ ActionBreakLongWoodenStick()

void ActionBreakLongWoodenStick::ActionBreakLongWoodenStick ( )
inlineprivate

Member Function Documentation

◆ ActionCondition()

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

Definition at line 30 of file ActionBreakLongWoodenStick.c.

31 {
32 if (item.IsEmpty() && (!item.GetCompEM() || !item.GetCompEM().IsWorking()))
33 return true;
34 else
35 return false;
36 }

◆ CreateConditionComponents()

override void ActionBreakLongWoodenStick::CreateConditionComponents ( )
inlineprivate

Definition at line 24 of file ActionBreakLongWoodenStick.c.

25 {
28 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

◆ HasTarget()

override bool ActionBreakLongWoodenStick::HasTarget ( )
inlineprivate

Definition at line 38 of file ActionBreakLongWoodenStick.c.

39 {
40 return false;
41 }

◆ OnFinishProgressServer()

override void ActionBreakLongWoodenStick::OnFinishProgressServer ( ActionData action_data)
inlineprivate

Definition at line 43 of file ActionBreakLongWoodenStick.c.

44 {
46
47 BreakLongWoodenStick lambda = new BreakLongWoodenStick(action_data.m_MainItem, "WoodenStick", action_data.m_Player, 3);
48 action_data.m_Player.ServerReplaceItemInHandsWithNew(lambda);
49
50 if (LongWoodenStick.Cast(startingItem) == null) // case if it is a broom
51 {
52 EntityAI longStick = action_data.m_Player.SpawnEntityOnGroundPos("LongWoodenStick", action_data.m_Player.GetPosition());
53
56
57 MiscGameplayFunctions.TransferItemProperties(action_data.m_MainItem, item_result);
58 }
59 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

References Class::CastTo().


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