DayZ 1.24
Loading...
Searching...
No Matches
CannedFood.c File Reference

Go to the source code of this file.

Classes

class  DogFoodCan
 
class  CatFoodCan
 
class  PorkCan
 
class  Lunchmeat
 
class  UnknownFoodCan
 
class  Pajka
 
class  Pate
 
class  BrisketSpread
 

Functions

DogFoodCan Edible_Base CanDecay ()
 
override void Open ()
 Implementations only.
 
override void SetActions ()
 
override bool IsOpen ()
 
override bool CanProcessDecay ()
 
UnknownFoodCan Edible_Base UnknownFoodCan_Opened ()
 

Variables

CatFoodCan DogFoodCan_Opened
 

Function Documentation

◆ CanDecay()

DogFoodCan Edible_Base CanDecay ( )

Definition at line 1 of file CannedFood.c.

26 {
27 return true;
28 }

◆ CanProcessDecay()

override bool CanProcessDecay ( )

Definition at line 30 of file CannedFood.c.

31 {
32 return !(GetAgents() & eAgents.FOOD_POISON);
33 }
eAgents
Definition EAgents.c:3
override int GetAgents()
Definition ItemBase.c:8554

◆ IsOpen()

override bool CanDecay::IsOpen ( )

Definition at line 39 of file CannedFood.c.

◆ Open()

override void CanDecay::Open ( )

Implementations only.

Definition at line 26 of file CannedFood.c.

26 {
27 return true;
28 }
29
30 override bool CanProcessDecay()
override bool CanProcessDecay()
Definition CannedFood.c:30

Referenced by FireplaceBase::OnWasAttached().

◆ SetActions()

override void CanDecay::SetActions ( )

Definition at line 32 of file CannedFood.c.

36 {
37 super.SetActions();

◆ UnknownFoodCan_Opened()

UnknownFoodCan Edible_Base UnknownFoodCan_Opened ( )

Definition at line 140 of file CannedFood.c.

167 {
168 InsertAgent(eAgents.FOOD_POISON, 1);
169 }
override void InsertAgent(int agent, float count=1)
Definition ItemBase.c:8539

References AddAction().

Variable Documentation

◆ DogFoodCan_Opened

CatFoodCan DogFoodCan_Opened