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

#include <PowerGenerator.h>

Inheritance diagram for PowerGenerator:
ItemBase

Private Member Functions

void  PowerGenerator ()
 
void  ~PowerGenerator ()
 
void  StartLoopSound ()
 
void  OnInitElectricity ()
 
void  OnWorkStart ()
 
void  OnWork ()
 
void  OnWorkStop ()
 
protected void  EEItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
void  SetFuel (float fuel_amount)
 
void  ReportStatus (PlayerBase player)
 
float  AddFuel (float available_fuel, PlayerBase player)
 
float  GetFuel ()
 
float  GetMaxFuel ()
 
bool  CanAddFuel (ItemBase container)
 
bool  HasSparkplug ()
 
void  InstallSparkplug (ItemBase item)
 

Private Attributes

float  m_Fuel
 
float  m_FuelTankCapacity
 
float  m_FuelToEnergyRatio
 
SoundOnVehicle  m_SoundLoopEntity
 
autoptr Timer  m_SoundLoopStartTimer
 
ItemBase  m_SparkPlug
 

Constructor & Destructor Documentation

void PowerGenerator::PowerGenerator ( )
private
void PowerGenerator::~PowerGenerator ( )
private

References m_SoundLoopStartTimer.

Member Function Documentation

void PowerGenerator::StartLoopSound ( )
private
void PowerGenerator::OnInitElectricity ( )
private
void PowerGenerator::OnWorkStart ( )
private
void PowerGenerator::OnWork ( )
private
void PowerGenerator::OnWorkStop ( )
private
void PowerGenerator::EEItemLocationChanged ( EntityAI  old_owner,
EntityAI  new_owner 
)
private
void PowerGenerator::SetFuel ( float  fuel_amount )
private
void PowerGenerator::ReportStatus ( PlayerBase  player )
private
float PowerGenerator::AddFuel ( float  available_fuel,
PlayerBase  player 
)
private
float PowerGenerator::GetFuel ( )
private
float PowerGenerator::GetMaxFuel ( )
private

References m_FuelTankCapacity.

Referenced by AddFuel(), and ReportStatus().

bool PowerGenerator::CanAddFuel ( ItemBase  container )
private
bool PowerGenerator::HasSparkplug ( )
private

References m_SparkPlug.

Referenced by ReportStatus().

void PowerGenerator::InstallSparkplug ( ItemBase  item )
private

Member Data Documentation

float PowerGenerator::m_Fuel
private
float PowerGenerator::m_FuelTankCapacity
private

Referenced by GetMaxFuel(), and OnInitElectricity().

float PowerGenerator::m_FuelToEnergyRatio
private

Referenced by GetFuel(), OnInitElectricity(), and SetFuel().

SoundOnVehicle PowerGenerator::m_SoundLoopEntity
private
autoptr Timer PowerGenerator::m_SoundLoopStartTimer
private
ItemBase PowerGenerator::m_SparkPlug
private

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