Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
Land_WarheadStorage_PowerStation Class Reference
Inheritance diagram for Land_WarheadStorage_PowerStation:
House

Protected Member Functions

void Land_WarheadStorage_PowerStation ()
 
override void DeferredInit ()
 
override void OnVariablesSynchronized ()
 
vector GetPowerGeneratorSpawnPos ()
 
void LinkPowerGeneratorServer ()
 
PowerGeneratorStatic GetPowerGenerator ()
 
void AnimateLever (int index, int state=-1)
 
void PlayLeverSound (string leverName, int state)
 
void StartTimer ()
 
void CheckStopTimer ()
 
void Tick ()
 
void OnLeverToggled ()
 
void TurnAllLeversOff ()
 
string GetLeverComponentNameByLeverIndex (int leverIndex)
 
int GetLeverIndexByComponentName (string name)
 
void UpdateLeverStatesServer ()
 
void OnGeneratorStart ()
 
void OnGeneratorStop ()
 
override void OnAnimationPhaseStarted (string animSource, float phase)
 
Land_WarheadStorage_Main GetClosestBunker ()
 
void DebugPrepareGenerator ()
 
void OnAfterLoadUpdate ()
 

Static Protected Member Functions

static void RegisterBunker (Land_WarheadStorage_Main bunker)
 
static void UnregisterBunker (Land_WarheadStorage_Main bunker)
 

Protected Attributes

bool m_InitBunkerState
 
ref Timer m_UpdateTimer
 
PowerGeneratorStatic m_PowerGenerator
 
bool m_IsPowerGeneratorRunning
 
int m_PlaySparks
 
int m_LastActivatedLeverId
 
int m_LeverStatesBits
 
const string LEVERS_POS_MEMPOINT = "leverup_axis"
 
const string GENERATOR_POS_MEMPOINT = "generator_pos"
 
const string SWITCH_UP_SOUND = "Power_Station_Switch_Up_SoundSet"
 
const string SWITCH_DOWN_SOUND = "Power_Station_Switch_Down_SoundSet"
 
const string SPARKLES_SOUND = "Power_Station_generator_overpowered_SoundSet"
 

Static Protected Attributes

static ref set< Land_WarheadStorage_Mainm_Bunkers
 
static ref map< Land_WarheadStorage_PowerStation, Land_WarheadStorage_Mainm_BunkerStationMap = new map<Land_WarheadStorage_PowerStation, Land_WarheadStorage_Main>()
 

Detailed Description

Definition at line 1 of file land_warheadstorage_powerstation.c.

Constructor & Destructor Documentation

◆ Land_WarheadStorage_PowerStation()

void Land_WarheadStorage_PowerStation::Land_WarheadStorage_PowerStation ( )
protected

Definition at line 21 of file land_warheadstorage_powerstation.c.

Member Function Documentation

◆ AnimateLever()

void Land_WarheadStorage_PowerStation::AnimateLever ( int index,
int state = -1 )
protected

Definition at line 90 of file land_warheadstorage_powerstation.c.

◆ CheckStopTimer()

void Land_WarheadStorage_PowerStation::CheckStopTimer ( )
protected

Definition at line 131 of file land_warheadstorage_powerstation.c.

◆ DebugPrepareGenerator()

void Land_WarheadStorage_PowerStation::DebugPrepareGenerator ( )
protected

Definition at line 366 of file land_warheadstorage_powerstation.c.

◆ DeferredInit()

override void Land_WarheadStorage_PowerStation::DeferredInit ( )
protected

Definition at line 28 of file land_warheadstorage_powerstation.c.

◆ GetClosestBunker()

Land_WarheadStorage_Main Land_WarheadStorage_PowerStation::GetClosestBunker ( )
protected

Definition at line 305 of file land_warheadstorage_powerstation.c.

◆ GetLeverComponentNameByLeverIndex()

string Land_WarheadStorage_PowerStation::GetLeverComponentNameByLeverIndex ( int leverIndex)
protected

Definition at line 216 of file land_warheadstorage_powerstation.c.

◆ GetLeverIndexByComponentName()

int Land_WarheadStorage_PowerStation::GetLeverIndexByComponentName ( string name)
protected

Definition at line 232 of file land_warheadstorage_powerstation.c.

◆ GetPowerGenerator()

PowerGeneratorStatic Land_WarheadStorage_PowerStation::GetPowerGenerator ( )
protected

Definition at line 83 of file land_warheadstorage_powerstation.c.

◆ GetPowerGeneratorSpawnPos()

vector Land_WarheadStorage_PowerStation::GetPowerGeneratorSpawnPos ( )
protected

Definition at line 53 of file land_warheadstorage_powerstation.c.

◆ LinkPowerGeneratorServer()

void Land_WarheadStorage_PowerStation::LinkPowerGeneratorServer ( )
protected

Definition at line 59 of file land_warheadstorage_powerstation.c.

◆ OnAfterLoadUpdate()

void Land_WarheadStorage_PowerStation::OnAfterLoadUpdate ( )
protected

Definition at line 376 of file land_warheadstorage_powerstation.c.

◆ OnAnimationPhaseStarted()

override void Land_WarheadStorage_PowerStation::OnAnimationPhaseStarted ( string animSource,
float phase )
protected

Definition at line 288 of file land_warheadstorage_powerstation.c.

◆ OnGeneratorStart()

void Land_WarheadStorage_PowerStation::OnGeneratorStart ( )
protected

Definition at line 258 of file land_warheadstorage_powerstation.c.

◆ OnGeneratorStop()

void Land_WarheadStorage_PowerStation::OnGeneratorStop ( )
protected

Definition at line 273 of file land_warheadstorage_powerstation.c.

◆ OnLeverToggled()

void Land_WarheadStorage_PowerStation::OnLeverToggled ( )
protected

Definition at line 178 of file land_warheadstorage_powerstation.c.

◆ OnVariablesSynchronized()

override void Land_WarheadStorage_PowerStation::OnVariablesSynchronized ( )
protected

Definition at line 36 of file land_warheadstorage_powerstation.c.

◆ PlayLeverSound()

void Land_WarheadStorage_PowerStation::PlayLeverSound ( string leverName,
int state )
protected

Definition at line 112 of file land_warheadstorage_powerstation.c.

◆ RegisterBunker()

static void Land_WarheadStorage_PowerStation::RegisterBunker ( Land_WarheadStorage_Main bunker)
staticprotected

Definition at line 341 of file land_warheadstorage_powerstation.c.

◆ StartTimer()

void Land_WarheadStorage_PowerStation::StartTimer ( )
protected

Definition at line 124 of file land_warheadstorage_powerstation.c.

◆ Tick()

void Land_WarheadStorage_PowerStation::Tick ( )
protected

Definition at line 139 of file land_warheadstorage_powerstation.c.

◆ TurnAllLeversOff()

void Land_WarheadStorage_PowerStation::TurnAllLeversOff ( )
protected

Definition at line 202 of file land_warheadstorage_powerstation.c.

◆ UnregisterBunker()

static void Land_WarheadStorage_PowerStation::UnregisterBunker ( Land_WarheadStorage_Main bunker)
staticprotected

Definition at line 350 of file land_warheadstorage_powerstation.c.

◆ UpdateLeverStatesServer()

void Land_WarheadStorage_PowerStation::UpdateLeverStatesServer ( )
protected

Definition at line 249 of file land_warheadstorage_powerstation.c.

Member Data Documentation

◆ GENERATOR_POS_MEMPOINT

const string Land_WarheadStorage_PowerStation::GENERATOR_POS_MEMPOINT = "generator_pos"
protected

Definition at line 15 of file land_warheadstorage_powerstation.c.

◆ LEVERS_POS_MEMPOINT

const string Land_WarheadStorage_PowerStation::LEVERS_POS_MEMPOINT = "leverup_axis"
protected

Definition at line 14 of file land_warheadstorage_powerstation.c.

◆ m_Bunkers

ref set<Land_WarheadStorage_Main> Land_WarheadStorage_PowerStation::m_Bunkers
staticprotected

Definition at line 4 of file land_warheadstorage_powerstation.c.

◆ m_BunkerStationMap

ref map<Land_WarheadStorage_PowerStation, Land_WarheadStorage_Main> Land_WarheadStorage_PowerStation::m_BunkerStationMap = new map<Land_WarheadStorage_PowerStation, Land_WarheadStorage_Main>()
staticprotected

Definition at line 12 of file land_warheadstorage_powerstation.c.

◆ m_InitBunkerState

bool Land_WarheadStorage_PowerStation::m_InitBunkerState
protected

Definition at line 3 of file land_warheadstorage_powerstation.c.

◆ m_IsPowerGeneratorRunning

bool Land_WarheadStorage_PowerStation::m_IsPowerGeneratorRunning
protected

Definition at line 7 of file land_warheadstorage_powerstation.c.

◆ m_LastActivatedLeverId

int Land_WarheadStorage_PowerStation::m_LastActivatedLeverId
protected

Definition at line 9 of file land_warheadstorage_powerstation.c.

◆ m_LeverStatesBits

int Land_WarheadStorage_PowerStation::m_LeverStatesBits
protected

Definition at line 10 of file land_warheadstorage_powerstation.c.

◆ m_PlaySparks

int Land_WarheadStorage_PowerStation::m_PlaySparks
protected

Definition at line 8 of file land_warheadstorage_powerstation.c.

◆ m_PowerGenerator

PowerGeneratorStatic Land_WarheadStorage_PowerStation::m_PowerGenerator
protected

Definition at line 6 of file land_warheadstorage_powerstation.c.

◆ m_UpdateTimer

ref Timer Land_WarheadStorage_PowerStation::m_UpdateTimer
protected

Definition at line 5 of file land_warheadstorage_powerstation.c.

◆ SPARKLES_SOUND

const string Land_WarheadStorage_PowerStation::SPARKLES_SOUND = "Power_Station_generator_overpowered_SoundSet"
protected

Definition at line 19 of file land_warheadstorage_powerstation.c.

◆ SWITCH_DOWN_SOUND

const string Land_WarheadStorage_PowerStation::SWITCH_DOWN_SOUND = "Power_Station_Switch_Down_SoundSet"
protected

Definition at line 18 of file land_warheadstorage_powerstation.c.

◆ SWITCH_UP_SOUND

const string Land_WarheadStorage_PowerStation::SWITCH_UP_SOUND = "Power_Station_Switch_Up_SoundSet"
protected

Definition at line 17 of file land_warheadstorage_powerstation.c.


The documentation for this class was generated from the following file: