DayZ Enforce
Script API
Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Cooking Class Reference

#include <Cooking.h>

Private Member Functions

void  Cooking (ItemBase item)
 
bool  CanBeCooked (string item_type)
 
bool  HasItemInCargo (string item_type)
 
ItemBase  GetItemFromCargo (string item_type)
 
string  GetCookingMethod ()
 
void  CookingProcess ()
 
void  UpdateCookingState (ItemBase item_to_cook)
 

Private Attributes

autoptr ItemBase  m_CookingEquipment
 
string  m_CookingMethod
 

Static Private Attributes

static const string  COOKING_METHOD_BOILING = "Boiling"
 
static const string  COOKING_METHOD_BAKING = "Baking"
 
static const string  COOKING_METHOD_DRYING = "Drying"
 
static const float  COOKING_FOOD_TEMP_INC_COEF = 10
 
static const float  COOKING_FOOD_TIME_INC_COEF = 2
 
static const float  COOKING_FOOD_MAX_TEMP_MP = 1.2
 
static const float  COOKING_LARD_DECREASE_COEF = 0.05
 
static const float  TIMER_COOKING_UPDATE_INTERVAL = 2
 
static const string  COOKING_EQUIPMENT_STICK = "EN5C_LongWoodenStick"
 
static const string  COOKING_EQUIPMENT_POT = "EN5C_Pot"
 
static const string  COOKING_INGREDIENT_LARD = "EN5C_Lard"
 

Constructor & Destructor Documentation

void Cooking::Cooking ( ItemBase  item )
private

Member Function Documentation

bool Cooking::CanBeCooked ( string  item_type )
private

References CGame::ConfigIsExisting(), and GetGame().

Referenced by CookingProcess().

bool Cooking::HasItemInCargo ( string  item_type )
private
ItemBase Cooking::GetItemFromCargo ( string  item_type )
private
string Cooking::GetCookingMethod ( )
private
void Cooking::CookingProcess ( )
private
void Cooking::UpdateCookingState ( ItemBase  item_to_cook )
private

Member Data Documentation

const string Cooking::COOKING_METHOD_BOILING = "Boiling"
staticprivate

Referenced by GetCookingMethod().

const string Cooking::COOKING_METHOD_BAKING = "Baking"
staticprivate
const string Cooking::COOKING_METHOD_DRYING = "Drying"
staticprivate

Referenced by GetCookingMethod().

const float Cooking::COOKING_FOOD_TEMP_INC_COEF = 10
staticprivate

Referenced by UpdateCookingState().

const float Cooking::COOKING_FOOD_TIME_INC_COEF = 2
staticprivate

Referenced by UpdateCookingState().

const float Cooking::COOKING_FOOD_MAX_TEMP_MP = 1.2
staticprivate

Referenced by UpdateCookingState().

const float Cooking::COOKING_LARD_DECREASE_COEF = 0.05
staticprivate

Referenced by UpdateCookingState().

const float Cooking::TIMER_COOKING_UPDATE_INTERVAL = 2
staticprivate
const string Cooking::COOKING_EQUIPMENT_STICK = "EN5C_LongWoodenStick"
staticprivate
const string Cooking::COOKING_EQUIPMENT_POT = "EN5C_Pot"
staticprivate

Referenced by GetCookingMethod().

const string Cooking::COOKING_INGREDIENT_LARD = "EN5C_Lard"
staticprivate

Referenced by UpdateCookingState().

autoptr ItemBase Cooking::m_CookingEquipment
private
string Cooking::m_CookingMethod
private

The documentation for this class was generated from the following files:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)