PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
Land_WarheadStorage_PowerStation Class Reference

Private Member Functions

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

Static Private Member Functions

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

Private Attributes

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

Static Private Attributes

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

Constructor & Destructor Documentation

◆ Land_WarheadStorage_PowerStation()

void Land_WarheadStorage_PowerStation ( )
inlineprivate

References m_PlaySparks.

Member Function Documentation

◆ AnimateLever()

void AnimateLever ( int  index,
int  state = -1 
)
inlineprivate

◆ CheckStopTimer()

protected void CheckStopTimer ( )
inlineprivate

References m_UpdateTimer.

Referenced by Tick().

◆ DebugPrepareGenerator()

protected void DebugPrepareGenerator ( )
inlineprivate

References GetGame(), and m_PowerGenerator.

◆ DeferredInit()

override void DeferredInit ( )
inlineprivate

◆ GetClosestBunker()

◆ GetLeverComponentNameByLeverIndex()

string GetLeverComponentNameByLeverIndex ( int  leverIndex)
inlineprivate

◆ GetLeverIndexByComponentName()

int GetLeverIndexByComponentName ( string  name)
inlineprivate

◆ GetPowerGenerator()

PowerGeneratorStatic GetPowerGenerator ( )
inlineprivate

◆ GetPowerGeneratorSpawnPos()

vector GetPowerGeneratorSpawnPos ( )
inlineprivate

◆ LinkPowerGeneratorServer()

◆ OnAfterLoadUpdate()

◆ OnAnimationPhaseStarted()

override void OnAnimationPhaseStarted ( string  animSource,
float  phase 
)
inlineprivate

◆ OnGeneratorStart()

◆ OnGeneratorStop()

◆ OnLeverToggled()

◆ OnVariablesSynchronized()

◆ PlayLeverSound()

void PlayLeverSound ( string  leverName,
int  state 
)
inlineprivate

◆ RegisterBunker()

static void RegisterBunker ( Land_WarheadStorage_Main  bunker)
inlinestaticprivate

◆ StartTimer()

protected void StartTimer ( )
inlineprivate

References m_UpdateTimer.

Referenced by AnimateLever().

◆ Tick()

◆ TurnAllLeversOff()

protected void TurnAllLeversOff ( )
inlineprivate

◆ UnregisterBunker()

static void UnregisterBunker ( Land_WarheadStorage_Main  bunker)
inlinestaticprivate

◆ UpdateLeverStatesServer()

protected void UpdateLeverStatesServer ( )
inlineprivate

Field Documentation

◆ GENERATOR_POS_MEMPOINT

protected const string GENERATOR_POS_MEMPOINT = "generator_pos"
private

◆ LEVERS_POS_MEMPOINT

protected const string LEVERS_POS_MEMPOINT = "leverup_axis"
private

Referenced by PlayLeverSound().

◆ m_Bunkers

protected ref set<Land_WarheadStorage_Main> m_Bunkers
staticprivate

◆ m_BunkerStationMap

◆ m_InitBunkerState

protected bool m_InitBunkerState
private

Referenced by GetClosestBunker().

◆ m_IsPowerGeneratorRunning

protected bool m_IsPowerGeneratorRunning
private

◆ m_LastActivatedLeverId

protected int m_LastActivatedLeverId
private

Referenced by OnLeverToggled(), and Tick().

◆ m_LeverStatesBits

protected int m_LeverStatesBits
private

◆ m_PlaySparks

◆ m_PowerGenerator

◆ m_UpdateTimer

protected ref Timer m_UpdateTimer
private

Referenced by CheckStopTimer(), and StartTimer().

◆ SPARKLES_SOUND

protected const string SPARKLES_SOUND = "Power_Station_generator_overpowered_SoundSet"
private

Referenced by OnVariablesSynchronized().

◆ SWITCH_DOWN_SOUND

protected const string SWITCH_DOWN_SOUND = "Power_Station_Switch_Down_SoundSet"
private

Referenced by PlayLeverSound().

◆ SWITCH_UP_SOUND

protected const string SWITCH_UP_SOUND = "Power_Station_Switch_Up_SoundSet"
private

Referenced by PlayLeverSound().


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