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

Private Member Functions

void ActionEatFruit ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 

Detailed Description

Definition at line 9 of file ActionEatFruit.c.

Constructor & Destructor Documentation

◆ ActionEatFruit()

void ActionEatFruit::ActionEatFruit ( )
inlineprivate

Member Function Documentation

◆ ActionCondition()

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

Definition at line 18 of file ActionEatFruit.c.

19 {
20 if (!super.ActionCondition(player, target, item))
21 return false;
23
25 {
26 if (food_item.IsFruit())
27 return true;
28 }
29
30 return false;
31 }
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: