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

Private Member Functions

void ActionFertilizeSlot ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
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 11 of file ActionFertilizeSlot.c.

Constructor & Destructor Documentation

◆ ActionFertilizeSlot()

void ActionFertilizeSlot::ActionFertilizeSlot ( )
inlineprivate

Member Function Documentation

◆ ActionCondition()

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

Definition at line 31 of file ActionFertilizeSlot.c.

32 {
34 if (Class.CastTo(garden_base, target.GetObject()))
35 {
36 Slot slot;
37
39 garden_base.GetActionComponentNameList(target.GetComponentIndex(), selections);
40 string selection;
41
42 for (int s = 0; s < selections.Count(); s++)
43 {
44 selection = selections[s];
45 slot = garden_base.GetSlotBySelection(selection);
46 if (slot)
47 break;
48 }
49
50 if (garden_base.NeedsFertilization(selection))
51 {
52 if (item.GetQuantity() > 0)
53 return true;
54 }
55 }
56 return false;
57 }
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().

◆ CreateConditionComponents()

override void ActionFertilizeSlot::CreateConditionComponents ( )
inlineprivate

Definition at line 24 of file ActionFertilizeSlot.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.

◆ OnFinishProgressServer()

override void ActionFertilizeSlot::OnFinishProgressServer ( ActionData action_data)
inlineprivate

Definition at line 59 of file ActionFertilizeSlot.c.

60 {
61 // The functionality is in the Execute event of this user action's component.
62 }

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