Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
playerstomach.c File Reference

Go to the source code of this file.

Data Structures

class  StomachItem
 

Functions

void PlayerStomach (PlayerBase player)
 
void ~PlayerStomach ()
 
float GetStomachVolume ()
 
void ClearContents ()
 
void SetAgentTransferFilter (int filter_agents)
 
int GetAgentTransferFilter ()
 
int GetStorageVersion ()
 
bool IsDigesting ()
 
int GetDigestingType ()
 
void Update (float delta_time)
 
void ProcessNutrients (float delta_time)
 
void DigestAgents (int agents, float quantity)
 
void PrintUpdate ()
 
void AddToStomach (string class_name, float amount, int food_stage=0, int agents=0)
 
void OnStoreSave (ParamsWriteContext ctx)
 
bool OnStoreLoad (ParamsReadContext ctx, int version)
 
int GetDebugObject (array< ref Param > object_out)
 

Variables

class StomachItem DIGESTING_WATER = 1
 
const int DIGESTING_ENERGY = 2
 
const int quantity_bit_offset = 16
 
const int id_bit_offset = 4
 
const float DIGESTION_POINTS = PlayerConstants.DIGESTION_SPEED
 
const int ACCEPTABLE_QUANTITY_MAX = 32768
 
const int ACCEPTABLE_FOODSTAGE_MAX = FoodStageType.COUNT - 1
 
ref array< ref StomachItemm_StomachContents = new array<ref StomachItem>
 
int m_AgentTransferFilter
 
bool m_Digesting
 
int m_DigestingType
 
PlayerBase m_Player
 
float m_StomachVolume
 
const int STORAGE_VERSION = 106
 

Function Documentation

◆ AddToStomach()

void AddToStomach ( string  class_name,
float  amount,
int  food_stage = 0,
int  agents = 0 
)

Definition at line 323 of file playerstomach.c.

◆ ClearContents()

void ClearContents ( )

Definition at line 143 of file playerstomach.c.

◆ DigestAgents()

void DigestAgents ( int  agents,
float  quantity 
)

Definition at line 287 of file playerstomach.c.

◆ GetAgentTransferFilter()

int GetAgentTransferFilter ( )

Definition at line 154 of file playerstomach.c.

◆ GetDebugObject()

int GetDebugObject ( array< ref Param object_out)

Definition at line 442 of file playerstomach.c.

◆ GetDigestingType()

int GetDigestingType ( )

Definition at line 237 of file playerstomach.c.

◆ GetStomachVolume()

float GetStomachVolume ( )

Definition at line 138 of file playerstomach.c.

◆ GetStorageVersion()

int GetStorageVersion ( )

Definition at line 227 of file playerstomach.c.

◆ IsDigesting()

bool IsDigesting ( )

Definition at line 232 of file playerstomach.c.

◆ OnStoreLoad()

bool OnStoreLoad ( ParamsReadContext  ctx,
int  version 
)

Definition at line 396 of file playerstomach.c.

◆ OnStoreSave()

void OnStoreSave ( ParamsWriteContext  ctx)

Definition at line 375 of file playerstomach.c.

◆ PlayerStomach()

void PlayerStomach ( PlayerBase  player)

Definition at line 127 of file playerstomach.c.

◆ PrintUpdate()

void PrintUpdate ( )

Definition at line 303 of file playerstomach.c.

◆ ProcessNutrients()

void ProcessNutrients ( float  delta_time)

Definition at line 248 of file playerstomach.c.

◆ SetAgentTransferFilter()

void SetAgentTransferFilter ( int  filter_agents)

Definition at line 149 of file playerstomach.c.

◆ Update()

void Update ( float  delta_time)

Definition at line 243 of file playerstomach.c.

◆ ~PlayerStomach()

void ~PlayerStomach ( )

Definition at line 132 of file playerstomach.c.

Variable Documentation

◆ ACCEPTABLE_FOODSTAGE_MAX

const int ACCEPTABLE_FOODSTAGE_MAX = FoodStageType.COUNT - 1

Definition at line 114 of file playerstomach.c.

◆ ACCEPTABLE_QUANTITY_MAX

const int ACCEPTABLE_QUANTITY_MAX = 32768

Definition at line 113 of file playerstomach.c.

◆ DIGESTING_ENERGY

const int DIGESTING_ENERGY = 2

Definition at line 107 of file playerstomach.c.

◆ DIGESTING_WATER

class StomachItem DIGESTING_WATER = 1

◆ DIGESTION_POINTS

const float DIGESTION_POINTS = PlayerConstants.DIGESTION_SPEED

Definition at line 112 of file playerstomach.c.

◆ id_bit_offset

const int id_bit_offset = 4

Definition at line 110 of file playerstomach.c.

◆ m_AgentTransferFilter

int m_AgentTransferFilter

Definition at line 119 of file playerstomach.c.

◆ m_Digesting

bool m_Digesting

Definition at line 120 of file playerstomach.c.

◆ m_DigestingType

int m_DigestingType

Definition at line 121 of file playerstomach.c.

◆ m_Player

PlayerBase m_Player

Definition at line 122 of file playerstomach.c.

◆ m_StomachContents

ref array<ref StomachItem> m_StomachContents = new array<ref StomachItem>

Definition at line 118 of file playerstomach.c.

◆ m_StomachVolume

float m_StomachVolume

Definition at line 123 of file playerstomach.c.

◆ quantity_bit_offset

const int quantity_bit_offset = 16

Definition at line 109 of file playerstomach.c.

◆ STORAGE_VERSION

const int STORAGE_VERSION = 106

Definition at line 124 of file playerstomach.c.