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

Private Member Functions

void ActionDrink ()
 
override void CreateConditionComponents ()
 
override bool IsDrink ()
 
override bool HasTarget ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 

Detailed Description

Definition at line 9 of file ActionDrink.c.

Constructor & Destructor Documentation

◆ ActionDrink()

void ActionDrink::ActionDrink ( )
inlineprivate

Member Function Documentation

◆ ActionCondition()

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

Definition at line 35 of file ActionDrink.c.

36 {
37 if (!super.ActionCondition(player, target, item))
38 return false;
39
40 return player.CanEatAndDrink();
41 }

◆ CreateConditionComponents()

override void ActionDrink::CreateConditionComponents ( )
inlineprivate

Definition at line 19 of file ActionDrink.c.

20 {
23 }
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 ActionDrink::HasTarget ( )
inlineprivate

Definition at line 30 of file ActionDrink.c.

31 {
32 return false;
33 }

◆ IsDrink()

override bool ActionDrink::IsDrink ( )
inlineprivate

Definition at line 25 of file ActionDrink.c.

26 {
27 return true;
28 }

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