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

#include <FireplaceBase.h>

Inheritance diagram for EN5C_FireplaceBase:
ItemBase EN5C_Fireplace

Private Member Functions

private void  EN5C_FireplaceBase ()
 
private void  ~EN5C_FireplaceBase ()
 
bool  IsFireplace ()
 
void  DestroyFireplace ()
 
void  RefreshFireplaceVisual ()
 
void  RefreshFireVisual ()
 
void  RefreshFireIntensityVisual ()
 
void  AddToFireConsumables (ItemBase item)
 
private float  GetFireConsumableEnergy (ItemBase item)
 
void  RemoveFromFireConsumables (FireConsumable item)
 
void  SetItemToConsume ()
 
FireConsumable  GetItemToConsume ()
 
void  SpendFireConsumable (float amount)
 
array< ItemBase GetKindling ()
 
array< ItemBase GetFuel ()
 
bool  IsKindling (ItemBase item)
 
bool  IsFuel (ItemBase item)
 
bool  IsItemAttached (string item_type)
 
bool  IsItemAttachedQuantity (string item_type, float quantity)
 
ItemBase  GetAttachment (string object_type)
 
bool  HasLastAttachment ()
 
bool  IsBurning ()
 
void  SetBurningState (bool is_burning)
 
bool  HasAshes ()
 
void  SetAshesState (bool has_ashes)
 
int  GetFireIntensity ()
 
void  SetFireIntensity (int value)
 
void  StartFire ()
 
void  StopFire ()
 
void  StartHeating ()
 
void  Heating ()
 
void  BurnItemsInCargo ()
 
void  TransferHeatToNearObjects ()
 
void  StopHeating ()
 
void  StartCooling ()
 
void  Cooling ()
 
void  StopCooling ()
 
void  Cook ()
 
bool  LineHit (float height)
 
bool  IsFacingFireplace (PlayerBase player)
 
bool  IsPosingStick (PlayerBase player)
 
void  BoilWater (ItemBase liquid_container)
 
bool  CheckKindling ()
 
bool  CheckWind ()
 
bool  CheckWetness ()
 
bool  CheckRoof ()
 
bool  CheckRain ()
 
bool  CheckSurface ()
 
bool  IsEmpty ()
 

Private Attributes

bool  m_IsBurning
 
bool  m_HasAshes
 
int  m_FireIntensity
 
float  m_TemperatureLossMP
 
float  m_FuelBurnRateMP
 
float  m_BurnRateMP
 
Cooking  m_CookingProcess
 
const float  PARAM_SMALL_FIRE_TEMPERATURE = 250
 
const float  PARAM_NORMAL_FIRE_TEMPERATURE = 1000
 
const float  PARAM_MIN_FIRE_TEMPERATURE = 40
 
const float  PARAM_TEMPERATURE_INCREASE = 20
 
const float  PARAM_TEMPERATURE_DECREASE = 20
 
const float  PARAM_MAX_WET_TO_IGNITE = 0.2
 
const float  PARAM_MIN_TEMP_TO_REIGNITE = 200
 
const float  PARAM_IGNITE_RAIN_THRESHOLD = 0.05
 
const float  PARAM_BURN_WET_THRESHOLD = 0.5
 
const float  PARAM_WET_INCREASE_COEF = 0.02
 
const float  PARAM_FIRE_CONSUM_RATE_AMOUNT = 1.0
 
const float  PARAM_BURN_DAMAGE_COEF = 0.05
 
const float  PARAM_CARGO_TEMP_INCREASE_COEF = 10
 
const float  PARAM_MAX_CARGO_TEMP_INCREASE = 200
 
const float  PARAM_HEAT_RADIUS = 2.5
 
const float  PARAM_HEAT_WET_DECREASE_COEF = 0.02
 
const float  PARAM_COOKING_TEMP_THRESHOLD = 100
 
const float  PARAM_COOKING_EQUIP_MAX_TEMP = 150
 
const float  PARAM_COOKING_EQUIP_TEMP_INCREASE = 10
 
const float  PARAM_COOKING_EQUIP_BOILING_POINT = 100
 
const float  PARAM_COOKING_EQUIP_VAPOR_QUANTITY = 2
 
const int  TIMER_HEATING_UPDATE_INTERVAL = 2
 
const int  TIMER_COOLING_UPDATE_INTERVAL = 2
 
const string  OBJECT_CLUTTER_CUTTER = "Fireplace_ClutterCutter"
 
autoptr Timer  m_HeatingTimer
 
autoptr Timer  m_CoolingTimer
 
ItemBase  m_CookingEquipment
 
FireConsumable  m_ItemToConsume
 
string  m_SmokeParticlePoint
 
string  m_IndoorSlotName
 
private autoptr array< FireConsumable m_FireConsumables
 
private autoptr array< FireConsumableType m_KindlingTypes
 
private autoptr array< FireConsumableType m_FuelTypes
 
const string  MESSAGE_IGNITE_IGNIT_ITEM_DAMAGED = "You cannot start fire. %1 is too damaged."
 
const string  MESSAGE_IGNITE_NO_KINDLING = "There needs to be some kindling to start a fire."
 
const string  MESSAGE_IGNITE_TOO_WET = "The fireplace is too wet to be ignited."
 
const string  MESSAGE_IGNITE_RAIN = "The fire went out because of the rain."
 
const string  MESSAGE_IGNITE_WIND = "The fire went out because of the wind."
 
const string  MESSAGE_IGNITE_IN_WATER = "I cannot ignite the fireplace in the water."
 
const string  MESSAGE_IGNITE_UNDER_ROOF = "I cannot ignite the fireplace here, it's not safe."
 
const string  MESSAGE_IGNITE_FLARE_NOT_LIT = "I cannot ignite the fireplace because the flare is not lit."
 
const string  MESSAGE_EXTINGUISH_NOT_ENOUGH_WATER = "There needs to be more water to extinguish the fireplace."
 
const string  MESSAGE_REIGNITE_NO_KINDLING = "There needs to be some kindling to start a fire."
 
const string  MESSAGE_REIGNITE_RAIN = "Cannot reignite fireplace in rain."
 
const string  MESSAGE_REIGNITE_TOO_WET = "The fireplace is too wet to be reignited."
 
const string  MESSAGE_BURY_ASHES_FAILED_NOT_EMPTY = "Cannot bury ashes. There are sill items in it."
 
const string  MESSAGE_BURY_ASHES_FAILED_SURFACE = "Cannot bury ashes on hard surface."
 
const string  ANIMATION_ASHES = "Ashes"
 
const string  ANIMATION_KINDLING = "Kindling"
 
const string  ANIMATION_STICKS = "Sticks"
 
const string  ANIMATION_WOOD = "Wood"
 
const string  ANIMATION_BURNT_WOOD = "BurntWood"
 
const string  ANIMATION_STONES = "Stones"
 
const string  ANIMATION_TRIPOD = "Tripod"
 
const string  ANIMATION_OVEN = "Oven"
 
const string  ANIMATION_COOKWARE_HANDLE = "handleRotate"
 
const string  MATERIAL_FIREPLACE_GLOW = "dz\gear\cooking\data\stoneground.rvmat"
 
const string  MATERIAL_FIREPLACE_NOGLOW = "dz\gear\cooking\data\stonegroundnoemit.rvmat"
 
const string  ANIMATION_IGNITE_MATCH = "startFire"
 
const string  ANIMATION_IGNITE_HANDDRILL = "startFire"
 
const string  ANIMATION_IGNITE_FLARE = "ItemUseShort"
 
const string  ANIMATION_IGNITE_LIGHTER = "ItemUseShort"
 
const string  ATTACHMENT_STICKS = "EN5C_WoodenStick"
 
const string  ATTACHMENT_FIREWOOD = "EN5C_Firewood"
 
const string  ATTACHMENT_RAGS = "EN5C_Rag"
 
const string  ATTACHMENT_BAND_DRES = "Medical_BandageDressing"
 
const string  ATTACHMENT_BANDAGE = "Medical_Bandage"
 
const string  ATTACHMENT_BOOK = "ItemBook"
 
const string  ATTACHMENT_BARK_OAK = "Consumable_Bark_Oak"
 
const string  ATTACHMENT_BARK_BIRCH = "Consumable_Bark_Birch"
 
const string  ATTACHMENT_PAPER = "Consumable_Paper"
 
const string  ATTACHMENT_TRIPOD = "EN5C_Tripod"
 
const string  ATTACHMENT_STONES = "EN5C_Stone"
 
const string  ATTACHMENT_COOKING_POT = "EN5C_Pot"
 

Constructor & Destructor Documentation

private void EN5C_FireplaceBase::EN5C_FireplaceBase ( )
private
private void EN5C_FireplaceBase::~EN5C_FireplaceBase ( )
private

References m_CoolingTimer, and m_HeatingTimer.

Member Function Documentation

bool EN5C_FireplaceBase::IsFireplace ( )
private
void EN5C_FireplaceBase::DestroyFireplace ( )
private
void EN5C_FireplaceBase::RefreshFireplaceVisual ( )
private
void EN5C_FireplaceBase::RefreshFireVisual ( )
private
void EN5C_FireplaceBase::RefreshFireIntensityVisual ( )
private
void EN5C_FireplaceBase::AddToFireConsumables ( ItemBase  item )
private
private float EN5C_FireplaceBase::GetFireConsumableEnergy ( ItemBase  item )
private

References m_FuelTypes, and m_KindlingTypes.

Referenced by AddToFireConsumables().

void EN5C_FireplaceBase::RemoveFromFireConsumables ( FireConsumable  item )
private
void EN5C_FireplaceBase::SetItemToConsume ( )
private
FireConsumable EN5C_FireplaceBase::GetItemToConsume ( )
private

References m_ItemToConsume.

Referenced by SpendFireConsumable().

void EN5C_FireplaceBase::SpendFireConsumable ( float  amount )
private
array< ItemBase > EN5C_FireplaceBase::GetKindling ( )
private
array< ItemBase > EN5C_FireplaceBase::GetFuel ( )
private
bool EN5C_FireplaceBase::IsKindling ( ItemBase  item )
private
bool EN5C_FireplaceBase::IsFuel ( ItemBase  item )
private
bool EN5C_FireplaceBase::IsItemAttached ( string  item_type )
private
bool EN5C_FireplaceBase::IsItemAttachedQuantity ( string  item_type,
float  quantity 
)
private
ItemBase EN5C_FireplaceBase::GetAttachment ( string  object_type )
private
bool EN5C_FireplaceBase::HasLastAttachment ( )
private
bool EN5C_FireplaceBase::IsBurning ( )
private
void EN5C_FireplaceBase::SetBurningState ( bool  is_burning )
private

References m_IsBurning.

Referenced by StartFire(), and StopFire().

bool EN5C_FireplaceBase::HasAshes ( )
private
void EN5C_FireplaceBase::SetAshesState ( bool  has_ashes )
private

References m_HasAshes.

Referenced by StartFire().

int EN5C_FireplaceBase::GetFireIntensity ( )
private
void EN5C_FireplaceBase::SetFireIntensity ( int  value )
private

References m_FireIntensity.

Referenced by RefreshFireIntensityVisual().

void EN5C_FireplaceBase::StartFire ( )
private
void EN5C_FireplaceBase::StopFire ( )
private
void EN5C_FireplaceBase::StartHeating ( )
private
void EN5C_FireplaceBase::Heating ( )
private
void EN5C_FireplaceBase::BurnItemsInCargo ( )
private
void EN5C_FireplaceBase::TransferHeatToNearObjects ( )
private
void EN5C_FireplaceBase::StopHeating ( )
private
void EN5C_FireplaceBase::StartCooling ( )
private
void EN5C_FireplaceBase::Cooling ( )
private
void EN5C_FireplaceBase::StopCooling ( )
private
void EN5C_FireplaceBase::Cook ( )
private
bool EN5C_FireplaceBase::LineHit ( float  height )
private
bool EN5C_FireplaceBase::IsFacingFireplace ( PlayerBase  player )
private
bool EN5C_FireplaceBase::IsPosingStick ( PlayerBase  player )
private
void EN5C_FireplaceBase::BoilWater ( ItemBase  liquid_container )
private
bool EN5C_FireplaceBase::CheckKindling ( )
private
bool EN5C_FireplaceBase::CheckWind ( )
private
bool EN5C_FireplaceBase::CheckWetness ( )
private
bool EN5C_FireplaceBase::CheckRoof ( )
private
bool EN5C_FireplaceBase::CheckRain ( )
private
bool EN5C_FireplaceBase::CheckSurface ( )
private
bool EN5C_FireplaceBase::IsEmpty ( )
private

Member Data Documentation

bool EN5C_FireplaceBase::m_IsBurning
private
bool EN5C_FireplaceBase::m_HasAshes
private
int EN5C_FireplaceBase::m_FireIntensity
private
float EN5C_FireplaceBase::m_TemperatureLossMP
private

Referenced by EN5C_FireplaceBase().

float EN5C_FireplaceBase::m_FuelBurnRateMP
private

Referenced by EN5C_FireplaceBase().

float EN5C_FireplaceBase::m_BurnRateMP
private

Referenced by EN5C_FireplaceBase(), and Heating().

Cooking EN5C_FireplaceBase::m_CookingProcess
private

Referenced by Cook(), and EN5C_FireplaceBase().

const float EN5C_FireplaceBase::PARAM_SMALL_FIRE_TEMPERATURE = 250
private
const float EN5C_FireplaceBase::PARAM_NORMAL_FIRE_TEMPERATURE = 1000
private

Referenced by Cooling(), and Heating().

const float EN5C_FireplaceBase::PARAM_MIN_FIRE_TEMPERATURE = 40
private

Referenced by ActionBuryAshes::CanDo(), and Cooling().

const float EN5C_FireplaceBase::PARAM_TEMPERATURE_INCREASE = 20
private

Referenced by Heating().

const float EN5C_FireplaceBase::PARAM_TEMPERATURE_DECREASE = 20
private

Referenced by Cooling().

const float EN5C_FireplaceBase::PARAM_MAX_WET_TO_IGNITE = 0.2
private

Referenced by CheckWetness().

const float EN5C_FireplaceBase::PARAM_MIN_TEMP_TO_REIGNITE = 200
private
const float EN5C_FireplaceBase::PARAM_IGNITE_RAIN_THRESHOLD = 0.05
private

Referenced by CheckRain().

const float EN5C_FireplaceBase::PARAM_BURN_WET_THRESHOLD = 0.5
private
const float EN5C_FireplaceBase::PARAM_WET_INCREASE_COEF = 0.02
private

Referenced by Cooling(), and Heating().

const float EN5C_FireplaceBase::PARAM_FIRE_CONSUM_RATE_AMOUNT = 1.0
private

Referenced by Heating().

const float EN5C_FireplaceBase::PARAM_BURN_DAMAGE_COEF = 0.05
private

Referenced by BurnItemsInCargo().

const float EN5C_FireplaceBase::PARAM_CARGO_TEMP_INCREASE_COEF = 10
private

Referenced by BurnItemsInCargo().

const float EN5C_FireplaceBase::PARAM_MAX_CARGO_TEMP_INCREASE = 200
private

Referenced by BurnItemsInCargo().

const float EN5C_FireplaceBase::PARAM_HEAT_RADIUS = 2.5
private
const float EN5C_FireplaceBase::PARAM_HEAT_WET_DECREASE_COEF = 0.02
private
const float EN5C_FireplaceBase::PARAM_COOKING_TEMP_THRESHOLD = 100
private

Referenced by Cooling(), and Heating().

const float EN5C_FireplaceBase::PARAM_COOKING_EQUIP_MAX_TEMP = 150
private

Referenced by Heating().

const float EN5C_FireplaceBase::PARAM_COOKING_EQUIP_TEMP_INCREASE = 10
private

Referenced by Heating().

const float EN5C_FireplaceBase::PARAM_COOKING_EQUIP_BOILING_POINT = 100
private

Referenced by Heating().

const float EN5C_FireplaceBase::PARAM_COOKING_EQUIP_VAPOR_QUANTITY = 2
private

Referenced by BoilWater().

const int EN5C_FireplaceBase::TIMER_HEATING_UPDATE_INTERVAL = 2
private

Referenced by StartHeating().

const int EN5C_FireplaceBase::TIMER_COOLING_UPDATE_INTERVAL = 2
private

Referenced by StartCooling().

const string EN5C_FireplaceBase::OBJECT_CLUTTER_CUTTER = "Fireplace_ClutterCutter"
private
autoptr Timer EN5C_FireplaceBase::m_HeatingTimer
private
autoptr Timer EN5C_FireplaceBase::m_CoolingTimer
private
ItemBase EN5C_FireplaceBase::m_CookingEquipment
private
FireConsumable EN5C_FireplaceBase::m_ItemToConsume
private
string EN5C_FireplaceBase::m_SmokeParticlePoint
private
string EN5C_FireplaceBase::m_IndoorSlotName
private
private autoptr array<FireConsumable> EN5C_FireplaceBase::m_FireConsumables
private
private autoptr array<FireConsumableType> EN5C_FireplaceBase::m_KindlingTypes
private
private autoptr array<FireConsumableType> EN5C_FireplaceBase::m_FuelTypes
private
const string EN5C_FireplaceBase::MESSAGE_IGNITE_IGNIT_ITEM_DAMAGED = "You cannot start fire. %1 is too damaged."
private
const string EN5C_FireplaceBase::MESSAGE_IGNITE_NO_KINDLING = "There needs to be some kindling to start a fire."
private
const string EN5C_FireplaceBase::MESSAGE_IGNITE_TOO_WET = "The fireplace is too wet to be ignited."
private
const string EN5C_FireplaceBase::MESSAGE_IGNITE_RAIN = "The fire went out because of the rain."
private
const string EN5C_FireplaceBase::MESSAGE_IGNITE_WIND = "The fire went out because of the wind."
private
const string EN5C_FireplaceBase::MESSAGE_IGNITE_IN_WATER = "I cannot ignite the fireplace in the water."
private
const string EN5C_FireplaceBase::MESSAGE_IGNITE_UNDER_ROOF = "I cannot ignite the fireplace here, it's not safe."
private
const string EN5C_FireplaceBase::MESSAGE_IGNITE_FLARE_NOT_LIT = "I cannot ignite the fireplace because the flare is not lit."
private
const string EN5C_FireplaceBase::MESSAGE_EXTINGUISH_NOT_ENOUGH_WATER = "There needs to be more water to extinguish the fireplace."
private
const string EN5C_FireplaceBase::MESSAGE_REIGNITE_NO_KINDLING = "There needs to be some kindling to start a fire."
private
const string EN5C_FireplaceBase::MESSAGE_REIGNITE_RAIN = "Cannot reignite fireplace in rain."
private
const string EN5C_FireplaceBase::MESSAGE_REIGNITE_TOO_WET = "The fireplace is too wet to be reignited."
private
const string EN5C_FireplaceBase::MESSAGE_BURY_ASHES_FAILED_NOT_EMPTY = "Cannot bury ashes. There are sill items in it."
private
const string EN5C_FireplaceBase::MESSAGE_BURY_ASHES_FAILED_SURFACE = "Cannot bury ashes on hard surface."
private
const string EN5C_FireplaceBase::ANIMATION_ASHES = "Ashes"
private

Referenced by RefreshFireplaceVisual().

const string EN5C_FireplaceBase::ANIMATION_KINDLING = "Kindling"
private

Referenced by RefreshFireplaceVisual().

const string EN5C_FireplaceBase::ANIMATION_STICKS = "Sticks"
private

Referenced by RefreshFireplaceVisual().

const string EN5C_FireplaceBase::ANIMATION_WOOD = "Wood"
private

Referenced by RefreshFireplaceVisual().

const string EN5C_FireplaceBase::ANIMATION_BURNT_WOOD = "BurntWood"
private

Referenced by RefreshFireplaceVisual().

const string EN5C_FireplaceBase::ANIMATION_STONES = "Stones"
private

Referenced by RefreshFireplaceVisual().

const string EN5C_FireplaceBase::ANIMATION_TRIPOD = "Tripod"
private

Referenced by RefreshFireplaceVisual().

const string EN5C_FireplaceBase::ANIMATION_OVEN = "Oven"
private
const string EN5C_FireplaceBase::ANIMATION_COOKWARE_HANDLE = "handleRotate"
private
const string EN5C_FireplaceBase::MATERIAL_FIREPLACE_GLOW = "dz\gear\cooking\data\stoneground.rvmat"
private

Referenced by StartHeating().

const string EN5C_FireplaceBase::MATERIAL_FIREPLACE_NOGLOW = "dz\gear\cooking\data\stonegroundnoemit.rvmat"
private

Referenced by Cooling().

const string EN5C_FireplaceBase::ANIMATION_IGNITE_MATCH = "startFire"
private
const string EN5C_FireplaceBase::ANIMATION_IGNITE_HANDDRILL = "startFire"
private
const string EN5C_FireplaceBase::ANIMATION_IGNITE_FLARE = "ItemUseShort"
private
const string EN5C_FireplaceBase::ANIMATION_IGNITE_LIGHTER = "ItemUseShort"
private
const string EN5C_FireplaceBase::ATTACHMENT_STICKS = "EN5C_WoodenStick"
private
const string EN5C_FireplaceBase::ATTACHMENT_FIREWOOD = "EN5C_Firewood"
private
const string EN5C_FireplaceBase::ATTACHMENT_RAGS = "EN5C_Rag"
private

Referenced by EN5C_FireplaceBase().

const string EN5C_FireplaceBase::ATTACHMENT_BAND_DRES = "Medical_BandageDressing"
private

Referenced by EN5C_FireplaceBase().

const string EN5C_FireplaceBase::ATTACHMENT_BANDAGE = "Medical_Bandage"
private

Referenced by EN5C_FireplaceBase().

const string EN5C_FireplaceBase::ATTACHMENT_BOOK = "ItemBook"
private

Referenced by EN5C_FireplaceBase().

const string EN5C_FireplaceBase::ATTACHMENT_BARK_OAK = "Consumable_Bark_Oak"
private

Referenced by EN5C_FireplaceBase().

const string EN5C_FireplaceBase::ATTACHMENT_BARK_BIRCH = "Consumable_Bark_Birch"
private

Referenced by EN5C_FireplaceBase().

const string EN5C_FireplaceBase::ATTACHMENT_PAPER = "Consumable_Paper"
private

Referenced by EN5C_FireplaceBase().

const string EN5C_FireplaceBase::ATTACHMENT_TRIPOD = "EN5C_Tripod"
private
const string EN5C_FireplaceBase::ATTACHMENT_STONES = "EN5C_Stone"
private
const string EN5C_FireplaceBase::ATTACHMENT_COOKING_POT = "EN5C_Pot"
private

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