Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
land_underground_waterreservoir.c File Reference

Go to the source code of this file.

Classes

class  WaterLevelSettings
 
class  WaterLevelSnapshot
 
class  Land_Underground_WaterReservoir_Water
 

Functions

void PressureLevelSettings (int pPressureLevel, float pDuration)
 
void Land_Underground_WaterReservoir ()
 
void ~Land_Underground_WaterReservoir ()
 
override void EOnPostSimulate (IEntity other, float timeSlice)
 
override void OnVariablesSynchronized ()
 
override void SetActions ()
 
override bool HasTurnableValveBehavior ()
 
void Init ()
 Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)
 
void LateInit ()
 
void ConfigureValvesAndGaugesCourse ()
 
override bool IsValveTurnable (int pValveIndex)
 
bool IsAnyValveActive ()
 
bool IsValveActive (int pValveIndex)
 
override int GetTurnableValveIndex (int pComponentIndex)
 
void OnValveManipulationStart (int pValveIndex)
 
void OnValveManipulationEnd (int pValveIndex)
 
void OnValveManipulationCanceled (int pValveIndex)
 
array< vectorGetValveAligningPointsWS (int pValveIndex)
 
void SetLastActiveValve (int pValveIndex)
 
void SetWaterLevelHeight (float pHeight)
 
void RegisterValve (string pCompName, int pIndex)
 
void TranslateMemoryPointsToWaterLevels ()
 
float WaterLevelToHeight (int pWaterLevel)
 
int HeightToWaterLevel (float pHeight)
 
float PressureLevelToValue (int pPressureLevel)
 
WaterLevelSettings PreviousWaterLevelStageSettings (int pValveIndex)
 
WaterLevelSettings ActualWaterLevelStageSettings (int pValveIndex)
 
void AdvanceToNextWaterLevelStageSettings (int pValveIndex)
 
PressureLevelSettings PreviousPressureLevelStageSettings (int pValveIndex, bool pDeanimationRequest=false)
 
PressureLevelSettings ActualPressureLevelStageSettings (int pValveIndex, bool pDeanimationRequest=false)
 
void AdvanceToNextPressureLevelStageSettings (int pValveIndex)
 
void SetDefaultPressureLevelStageSettings (int pValveIndex)
 
void AnimateValve (int pValveIndex, float pPhase)
 
void SetValvePressureLevelGauge (int pValveIndex, float pValue)
 
float GetValvePressureLevelGauge (int pValveIndex)
 
bool IsValvePressureLevelGaugeAtBase (int pValveIndex)
 
float AdjustTime (float originalTime)
 
vector GetMemoryPointPosition (string pMemoryPoint)
 
void HandleSoundEffects ()
 
void PlayValveManipulationSound ()
 
void HandleSoundEffectsPipeCreaking ()
 
void HandleSoundEffectsPipeSprinkling ()
 
void HandleSoundEffectsUnderwaterPipeSounds ()
 
void HandleSoundEffectsWaterLevelMovementSounds ()
 
void CleanSoundEffects ()
 
void PlayPipeCreakingSoundOnLocation ()
 
void HandleVisualEffects ()
 
void CleanVisualEffects ()
 
void ResetState ()
 
void SyncValveVariables ()
 
int PackArrayOfBoolStatesIntoBits (array< bool > pStates)
 
array< boolUnpackBitsToArrayOfBoolStates (int pPackedBits, int pArrayLength)
 

Variables

class WaterLevelSettings PressureLevel
 
float Duration
 
class WaterLevelSnapshot OBJECT_NAME_WATER_PLANE = "Land_Underground_WaterReservoir_Water"
 
const int WL_MIN = 0
 
const int WL_ABOVE_PIPES = 1
 
const int WL_AVERAGE = 2
 
const int WL_MAX = 3
 
const int PL_MIN = 0
 
const int PL_AVERAGE = 1
 
const int PL_MAX = 2
 
const int VALVES_COUNT = 2
 
const int VALVE_INDEX_DRAIN = 0
 
const int VALVE_INDEX_FILL = 1
 
const int PIPES_BROKEN_COUNT = 2
 
const int PIPE_INDEX_BROKEN1 = 0
 
const int PIPE_INDEX_BROKEN2 = 1
 main broken pipe
 
const string ANIM_PHASE_VALVE_GAUGE_DRAIN = "ValveGauge1"
 tighter broken pipe
 
const string ANIM_PHASE_VALVE_GAUGE_FILL = "ValveGauge2"
 
const string ANIM_PHASE_VALVE_DRAIN = "Valve1"
 
const string ANIM_PHASE_VALVE_FILL = "Valve2"
 
const string VALVE_NAME_DRAIN = "valve1"
 
const string VALVE_NAME_FILL = "valve2"
 
const string PIPE_NAME_BROKEN1 = "pipe_broken_1"
 
const string PIPE_NAME_BROKEN2 = "pipe_broken_2"
 
const string PIPE_NAME_LEAKING_DRAIN = "pipe_leaking_1"
 
const string PIPE_NAME_LEAKING_FILL = "pipe_leaking_2"
 
const string SOUND_NAME_PIPE_CREAKING = "WaterObjectUndergroundPipeCreaking_SoundSet"
 
const string SOUND_NAME_VALVE_MANIPULATION = "WaterObjectUndergroundValve_SoundSet"
 
const string SOUND_NAME_PIPE_SPRINKLING_START = "WaterObjectUndergroundPipeSprinkling_Start_SoundSet"
 
const string SOUND_NAME_PIPE_SPRINKLING_END = "WaterObjectUndergroundPipeSprinkling_End_SoundSet"
 
const string SOUND_NAME_PIPE_SPRINKLING_LOOP1 = "WaterObjectUndergroundPipeSprinkling_Loop1_SoundSet"
 
const string SOUND_NAME_PIPE_SPRINKLING_LOOP2 = "WaterObjectUndergroundPipeSprinkling_Loop2_SoundSet"
 
const string SOUND_NAME_UPIPE_SPRINKLING_START = "WaterObjectUndergroundUnderwaterPipe_Start_SoundSet"
 
const string SOUND_NAME_UPIPE_SPRINKLING_END = "WaterObjectUndergroundUnderwaterPipe_End_SoundSet"
 
const string SOUND_NAME_UPIPE_SPRINKLING_LOOP = "WaterObjectUndergroundUnderwaterPipe_Loop_SoundSet"
 
const string SOUND_NAME_WATER_FILL_LOOP = "WaterObjectUndergroundUnderwaterFill_Loop_SoundSet"
 
const string SOUND_NAME_WATER_DRAIN_LOOP = "WaterObjectUndergroundUnderwaterEmpty_Loop_SoundSet"
 
const int PARTICLE_DRAIN_PIPE_MAX_PRESSURE = ParticleList.WATER_SPILLING
 
const int PARTICLE_FILL_PIPE_MAX_PRESSURE = ParticleList.WATER_SPILLING
 
const int PARTICLE_FILL_PIPE_JET = ParticleList.WATER_JET
 
const int PARTICLE_FILL_PIPE_JET_WEAK = ParticleList.WATER_JET_WEAK
 
ref array< ref WaterLevelSettingsm_DrainValveWaterStageSettings
 valve/pipe stages for water and pressure levels
 
ref array< ref PressureLevelSettingsm_DrainValvePressureStageSettings
 
ref array< ref PressureLevelSettingsm_DrainValvePressureDeanimationSettings
 
ref array< ref WaterLevelSettingsm_FillValveWaterStageSettings
 for deanimation purposes
 
ref array< ref PressureLevelSettingsm_FillValvePressureStageSettings
 
ref array< ref PressureLevelSettingsm_FillValvePressureDeanimationSettings
 
ref WaterLevelSnapshot m_WaterLevelSnapshot
 for deanimation purposes
 
int m_DrainValveWaterLevelStageIndex
 pointing to specific stage for each valve/pipe
 
int m_DrainValvePressureLevelStageIndex
 
int m_FillValveWaterLevelStageIndex
 
int m_FillValvePressureLevelStageIndex
 
const int WATER_LEVELS_COUNT = 4
 
const string WATER_LEVELS [WATER_LEVELS_COUNT]
 
int m_ValveStatesPacked
 
int m_ValveStatesPackedPrev
 
int m_ValveManipulatedIndex
 
int m_ValveManipulatedIndexPrev
 
ref array< stringm_ValveNames
 
ref array< boolm_ValveStates
 
ref map< string, vectorm_WaterLevelsAvailable
 
int m_WaterLevelActual
 
int m_WaterLevelPrev
 
ref array< boolm_PressureAnimationRequests
 
ref array< boolm_PressureDeanimationRequests
 
ref array< floatm_WaterLevelTimesAccumulated
 
ref array< floatm_PressureTimesAccumulated
 
int m_LastActiveValve
 
Object m_SpawnedWaterObject
 
vector m_WaterLevelDefault
 
float m_WaterLevelHeightActual
 
bool m_ValveManipulationSoundRequested
 VFX/SFX.
 
ref EffectSound m_ValveManipulationSound
 
ref array< EffectSoundm_PipeSounds
 
bool m_PipeCreakingSoundRequested
 
ref EffectSound m_PipeCreakingSounds
 
ref EffectSound m_PipeUnderwaterSound
 
ref EffectSound m_WaterLevelMovementSound
 
const int PIPE_CREAKING_MIN_TIME_DELAY_MS = 10000
 
const int PIPE_CREAKING_MAX_TIME_DELAY_MS = 15000
 
const int PIPE_CREAKING_SOUND_LOCATIONS_COUNT = 4
 
const string PIPE_CREAKING_SOUND_LOCATIONS [PIPE_CREAKING_SOUND_LOCATIONS_COUNT]
 
ref ParticleSourceArray m_ValveParticles
 
ref ParticleSourceArray m_PipeBrokenParticles
 

Function Documentation

◆ ActualPressureLevelStageSettings()

PressureLevelSettings ActualPressureLevelStageSettings ( int pValveIndex,
bool pDeanimationRequest = false )
protected

Definition at line 776 of file land_underground_waterreservoir.c.

◆ ActualWaterLevelStageSettings()

WaterLevelSettings ActualWaterLevelStageSettings ( int pValveIndex)
protected

Definition at line 689 of file land_underground_waterreservoir.c.

◆ AdjustTime()

float AdjustTime ( float originalTime)
protected

Definition at line 901 of file land_underground_waterreservoir.c.

◆ AdvanceToNextPressureLevelStageSettings()

void AdvanceToNextPressureLevelStageSettings ( int pValveIndex)
protected

Definition at line 805 of file land_underground_waterreservoir.c.

◆ AdvanceToNextWaterLevelStageSettings()

void AdvanceToNextWaterLevelStageSettings ( int pValveIndex)
protected

Definition at line 706 of file land_underground_waterreservoir.c.

◆ AnimateValve()

void AnimateValve ( int pValveIndex,
float pPhase )
protected

Definition at line 845 of file land_underground_waterreservoir.c.

◆ CleanSoundEffects()

void CleanSoundEffects ( )
protected

Definition at line 1084 of file land_underground_waterreservoir.c.

◆ CleanVisualEffects()

void CleanVisualEffects ( )
protected

Definition at line 1175 of file land_underground_waterreservoir.c.

◆ ConfigureValvesAndGaugesCourse()

void ConfigureValvesAndGaugesCourse ( )
protected

drain - water level

drain - pressure

for deanimation purposes only while valves activation overllaps

fill - water level

fill - pressure

for deanimation purposes only while valves activation overllaps

Definition at line 410 of file land_underground_waterreservoir.c.

◆ EOnPostSimulate()

override void EOnPostSimulate ( IEntity other,
float timeSlice )
protected

In case where one of the valves is already running

  • snapshot values; stop animation of that valve and continue with newly requested

will force that valve to start deanimation of gauge

water level course and animation

stay on the same level

pressure course and animation

stay on the same level

end of deanimation - overlapped activation of valves

Definition at line 166 of file land_underground_waterreservoir.c.

◆ GetMemoryPointPosition()

vector GetMemoryPointPosition ( string pMemoryPoint)
protected

Definition at line 914 of file land_underground_waterreservoir.c.

◆ GetTurnableValveIndex()

override int GetTurnableValveIndex ( int pComponentIndex)
protected

Definition at line 468 of file land_underground_waterreservoir.c.

◆ GetValveAligningPointsWS()

array< vector > GetValveAligningPointsWS ( int pValveIndex)
protected

for the animation aligning returns data in order: start point; direction point

Definition at line 532 of file land_underground_waterreservoir.c.

◆ GetValvePressureLevelGauge()

float GetValvePressureLevelGauge ( int pValveIndex)
protected

Definition at line 871 of file land_underground_waterreservoir.c.

◆ HandleSoundEffects()

void HandleSoundEffects ( )
protected

Definition at line 931 of file land_underground_waterreservoir.c.

◆ HandleSoundEffectsPipeCreaking()

void HandleSoundEffectsPipeCreaking ( )
protected

Definition at line 952 of file land_underground_waterreservoir.c.

◆ HandleSoundEffectsPipeSprinkling()

void HandleSoundEffectsPipeSprinkling ( )
protected

Definition at line 973 of file land_underground_waterreservoir.c.

◆ HandleSoundEffectsUnderwaterPipeSounds()

void HandleSoundEffectsUnderwaterPipeSounds ( )
protected

strong water jet sound only when fill valve activated

Definition at line 1029 of file land_underground_waterreservoir.c.

◆ HandleSoundEffectsWaterLevelMovementSounds()

void HandleSoundEffectsWaterLevelMovementSounds ( )
protected

Definition at line 1059 of file land_underground_waterreservoir.c.

◆ HandleVisualEffects()

void HandleVisualEffects ( )
protected

strong jet stream particle only when fill valve activated

we don't need the weak jet stream

weak jet stream

Definition at line 1097 of file land_underground_waterreservoir.c.

◆ HasTurnableValveBehavior()

override bool HasTurnableValveBehavior ( )
protected

Definition at line 328 of file land_underground_waterreservoir.c.

◆ HeightToWaterLevel()

int HeightToWaterLevel ( float pHeight)
protected

Definition at line 618 of file land_underground_waterreservoir.c.

◆ Init()

void Init ( )
protected

Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)

pre-init arrays

Definition at line 333 of file land_underground_waterreservoir.c.

◆ IsAnyValveActive()

bool IsAnyValveActive ( )
protected

Definition at line 450 of file land_underground_waterreservoir.c.

◆ IsValveActive()

bool IsValveActive ( int pValveIndex)
protected

Definition at line 463 of file land_underground_waterreservoir.c.

◆ IsValvePressureLevelGaugeAtBase()

bool IsValvePressureLevelGaugeAtBase ( int pValveIndex)
protected

Definition at line 886 of file land_underground_waterreservoir.c.

◆ IsValveTurnable()

override bool IsValveTurnable ( int pValveIndex)
protected

Definition at line 445 of file land_underground_waterreservoir.c.

◆ Land_Underground_WaterReservoir()

void Land_Underground_WaterReservoir ( )
protected

Definition at line 153 of file land_underground_waterreservoir.c.

◆ LateInit()

void LateInit ( )
protected

Definition at line 388 of file land_underground_waterreservoir.c.

◆ OnValveManipulationCanceled()

void OnValveManipulationCanceled ( int pValveIndex)
protected

Definition at line 520 of file land_underground_waterreservoir.c.

◆ OnValveManipulationEnd()

void OnValveManipulationEnd ( int pValveIndex)
protected

Definition at line 492 of file land_underground_waterreservoir.c.

◆ OnValveManipulationStart()

void OnValveManipulationStart ( int pValveIndex)
protected

Definition at line 482 of file land_underground_waterreservoir.c.

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )
protected

Definition at line 308 of file land_underground_waterreservoir.c.

◆ PackArrayOfBoolStatesIntoBits()

int PackArrayOfBoolStatesIntoBits ( array< bool > pStates)
protected

Definition at line 1234 of file land_underground_waterreservoir.c.

◆ PlayPipeCreakingSoundOnLocation()

void PlayPipeCreakingSoundOnLocation ( )
protected

Definition at line 1090 of file land_underground_waterreservoir.c.

◆ PlayValveManipulationSound()

void PlayValveManipulationSound ( )
protected

Definition at line 939 of file land_underground_waterreservoir.c.

◆ PressureLevelSettings()

void PressureLevelSettings ( int pPressureLevel,
float pDuration )

Definition at line 18 of file land_underground_waterreservoir.c.

◆ PressureLevelToValue()

float PressureLevelToValue ( int pPressureLevel)
protected

Definition at line 640 of file land_underground_waterreservoir.c.

◆ PreviousPressureLevelStageSettings()

PressureLevelSettings PreviousPressureLevelStageSettings ( int pValveIndex,
bool pDeanimationRequest = false )
protected

Definition at line 733 of file land_underground_waterreservoir.c.

◆ PreviousWaterLevelStageSettings()

WaterLevelSettings PreviousWaterLevelStageSettings ( int pValveIndex)
protected

Definition at line 655 of file land_underground_waterreservoir.c.

◆ RegisterValve()

void RegisterValve ( string pCompName,
int pIndex )
protected

Definition at line 575 of file land_underground_waterreservoir.c.

◆ ResetState()

void ResetState ( )
protected

Definition at line 1198 of file land_underground_waterreservoir.c.

◆ SetActions()

override void SetActions ( )
protected

Definition at line 321 of file land_underground_waterreservoir.c.

◆ SetDefaultPressureLevelStageSettings()

void SetDefaultPressureLevelStageSettings ( int pValveIndex)
protected

Definition at line 832 of file land_underground_waterreservoir.c.

◆ SetLastActiveValve()

void SetLastActiveValve ( int pValveIndex)
protected

Definition at line 555 of file land_underground_waterreservoir.c.

◆ SetValvePressureLevelGauge()

void SetValvePressureLevelGauge ( int pValveIndex,
float pValue )
protected

Definition at line 858 of file land_underground_waterreservoir.c.

◆ SetWaterLevelHeight()

void SetWaterLevelHeight ( float pHeight)
protected

Definition at line 560 of file land_underground_waterreservoir.c.

◆ SyncValveVariables()

void SyncValveVariables ( )
protected

Definition at line 1221 of file land_underground_waterreservoir.c.

◆ TranslateMemoryPointsToWaterLevels()

void TranslateMemoryPointsToWaterLevels ( )
protected

Definition at line 586 of file land_underground_waterreservoir.c.

◆ UnpackBitsToArrayOfBoolStates()

array< bool > UnpackBitsToArrayOfBoolStates ( int pPackedBits,
int pArrayLength )
protected

Definition at line 1249 of file land_underground_waterreservoir.c.

◆ WaterLevelToHeight()

float WaterLevelToHeight ( int pWaterLevel)
protected

Definition at line 601 of file land_underground_waterreservoir.c.

◆ ~Land_Underground_WaterReservoir()

void ~Land_Underground_WaterReservoir ( )
protected

Definition at line 160 of file land_underground_waterreservoir.c.

Variable Documentation

◆ ANIM_PHASE_VALVE_DRAIN

const string ANIM_PHASE_VALVE_DRAIN = "Valve1"
protected

Definition at line 54 of file land_underground_waterreservoir.c.

◆ ANIM_PHASE_VALVE_FILL

const string ANIM_PHASE_VALVE_FILL = "Valve2"
protected

Definition at line 55 of file land_underground_waterreservoir.c.

◆ ANIM_PHASE_VALVE_GAUGE_DRAIN

const string ANIM_PHASE_VALVE_GAUGE_DRAIN = "ValveGauge1"
protected

tighter broken pipe

Definition at line 52 of file land_underground_waterreservoir.c.

◆ ANIM_PHASE_VALVE_GAUGE_FILL

const string ANIM_PHASE_VALVE_GAUGE_FILL = "ValveGauge2"
protected

Definition at line 53 of file land_underground_waterreservoir.c.

◆ Duration

float Duration

Definition at line 16 of file land_underground_waterreservoir.c.

◆ m_DrainValvePressureDeanimationSettings

ref array<ref PressureLevelSettings> m_DrainValvePressureDeanimationSettings
protected

Definition at line 83 of file land_underground_waterreservoir.c.

◆ m_DrainValvePressureLevelStageIndex

int m_DrainValvePressureLevelStageIndex
protected

Definition at line 91 of file land_underground_waterreservoir.c.

◆ m_DrainValvePressureStageSettings

ref array<ref PressureLevelSettings> m_DrainValvePressureStageSettings
protected

Definition at line 82 of file land_underground_waterreservoir.c.

◆ m_DrainValveWaterLevelStageIndex

int m_DrainValveWaterLevelStageIndex
protected

pointing to specific stage for each valve/pipe

Definition at line 90 of file land_underground_waterreservoir.c.

◆ m_DrainValveWaterStageSettings

ref array<ref WaterLevelSettings> m_DrainValveWaterStageSettings
protected

valve/pipe stages for water and pressure levels

Definition at line 81 of file land_underground_waterreservoir.c.

◆ m_FillValvePressureDeanimationSettings

ref array<ref PressureLevelSettings> m_FillValvePressureDeanimationSettings
protected

Definition at line 86 of file land_underground_waterreservoir.c.

◆ m_FillValvePressureLevelStageIndex

int m_FillValvePressureLevelStageIndex
protected

Definition at line 93 of file land_underground_waterreservoir.c.

◆ m_FillValvePressureStageSettings

ref array<ref PressureLevelSettings> m_FillValvePressureStageSettings
protected

Definition at line 85 of file land_underground_waterreservoir.c.

◆ m_FillValveWaterLevelStageIndex

int m_FillValveWaterLevelStageIndex
protected

Definition at line 92 of file land_underground_waterreservoir.c.

◆ m_FillValveWaterStageSettings

ref array<ref WaterLevelSettings> m_FillValveWaterStageSettings
protected

for deanimation purposes

Definition at line 84 of file land_underground_waterreservoir.c.

◆ m_LastActiveValve

int m_LastActiveValve
protected

Definition at line 121 of file land_underground_waterreservoir.c.

◆ m_PipeBrokenParticles

ref ParticleSourceArray m_PipeBrokenParticles
protected

Definition at line 151 of file land_underground_waterreservoir.c.

◆ m_PipeCreakingSoundRequested

bool m_PipeCreakingSoundRequested
protected

Definition at line 132 of file land_underground_waterreservoir.c.

◆ m_PipeCreakingSounds

ref EffectSound m_PipeCreakingSounds
protected

Definition at line 133 of file land_underground_waterreservoir.c.

◆ m_PipeSounds

ref array<EffectSound> m_PipeSounds
protected

Definition at line 130 of file land_underground_waterreservoir.c.

◆ m_PipeUnderwaterSound

ref EffectSound m_PipeUnderwaterSound
protected

Definition at line 136 of file land_underground_waterreservoir.c.

◆ m_PressureAnimationRequests

ref array<bool> m_PressureAnimationRequests
protected

Definition at line 117 of file land_underground_waterreservoir.c.

◆ m_PressureDeanimationRequests

ref array<bool> m_PressureDeanimationRequests
protected

Definition at line 118 of file land_underground_waterreservoir.c.

◆ m_PressureTimesAccumulated

ref array<float> m_PressureTimesAccumulated
protected

Definition at line 120 of file land_underground_waterreservoir.c.

◆ m_SpawnedWaterObject

Object m_SpawnedWaterObject
protected

Definition at line 123 of file land_underground_waterreservoir.c.

◆ m_ValveManipulatedIndex

int m_ValveManipulatedIndex
protected

Definition at line 110 of file land_underground_waterreservoir.c.

◆ m_ValveManipulatedIndexPrev

int m_ValveManipulatedIndexPrev
protected

Definition at line 111 of file land_underground_waterreservoir.c.

◆ m_ValveManipulationSound

ref EffectSound m_ValveManipulationSound
protected

Definition at line 129 of file land_underground_waterreservoir.c.

◆ m_ValveManipulationSoundRequested

bool m_ValveManipulationSoundRequested
protected

VFX/SFX.

Definition at line 128 of file land_underground_waterreservoir.c.

◆ m_ValveNames

ref array<string> m_ValveNames
protected

Definition at line 112 of file land_underground_waterreservoir.c.

◆ m_ValveParticles

ref ParticleSourceArray m_ValveParticles
protected

Definition at line 150 of file land_underground_waterreservoir.c.

◆ m_ValveStates

ref array<bool> m_ValveStates
protected

Definition at line 113 of file land_underground_waterreservoir.c.

◆ m_ValveStatesPacked

int m_ValveStatesPacked
protected

Definition at line 108 of file land_underground_waterreservoir.c.

◆ m_ValveStatesPackedPrev

int m_ValveStatesPackedPrev
protected

Definition at line 109 of file land_underground_waterreservoir.c.

◆ m_WaterLevelActual

int m_WaterLevelActual
protected

Definition at line 115 of file land_underground_waterreservoir.c.

◆ m_WaterLevelDefault

vector m_WaterLevelDefault
protected

Definition at line 124 of file land_underground_waterreservoir.c.

◆ m_WaterLevelHeightActual

float m_WaterLevelHeightActual
protected

Definition at line 125 of file land_underground_waterreservoir.c.

◆ m_WaterLevelMovementSound

ref EffectSound m_WaterLevelMovementSound
protected

Definition at line 138 of file land_underground_waterreservoir.c.

◆ m_WaterLevelPrev

int m_WaterLevelPrev
protected

Definition at line 116 of file land_underground_waterreservoir.c.

◆ m_WaterLevelsAvailable

ref map<string, vector> m_WaterLevelsAvailable
protected

Definition at line 114 of file land_underground_waterreservoir.c.

◆ m_WaterLevelSnapshot

ref WaterLevelSnapshot m_WaterLevelSnapshot
protected

for deanimation purposes

Definition at line 87 of file land_underground_waterreservoir.c.

◆ m_WaterLevelTimesAccumulated

ref array<float> m_WaterLevelTimesAccumulated
protected

Definition at line 119 of file land_underground_waterreservoir.c.

◆ OBJECT_NAME_WATER_PLANE

class WaterLevelSnapshot OBJECT_NAME_WATER_PLANE = "Land_Underground_WaterReservoir_Water"

◆ PARTICLE_DRAIN_PIPE_MAX_PRESSURE

const int PARTICLE_DRAIN_PIPE_MAX_PRESSURE = ParticleList.WATER_SPILLING
protected

Definition at line 75 of file land_underground_waterreservoir.c.

◆ PARTICLE_FILL_PIPE_JET

const int PARTICLE_FILL_PIPE_JET = ParticleList.WATER_JET
protected

Definition at line 77 of file land_underground_waterreservoir.c.

◆ PARTICLE_FILL_PIPE_JET_WEAK

const int PARTICLE_FILL_PIPE_JET_WEAK = ParticleList.WATER_JET_WEAK
protected

Definition at line 78 of file land_underground_waterreservoir.c.

◆ PARTICLE_FILL_PIPE_MAX_PRESSURE

const int PARTICLE_FILL_PIPE_MAX_PRESSURE = ParticleList.WATER_SPILLING
protected

Definition at line 76 of file land_underground_waterreservoir.c.

◆ PIPE_CREAKING_MAX_TIME_DELAY_MS

const int PIPE_CREAKING_MAX_TIME_DELAY_MS = 15000
protected

Definition at line 141 of file land_underground_waterreservoir.c.

◆ PIPE_CREAKING_MIN_TIME_DELAY_MS

const int PIPE_CREAKING_MIN_TIME_DELAY_MS = 10000
protected

Definition at line 140 of file land_underground_waterreservoir.c.

◆ PIPE_CREAKING_SOUND_LOCATIONS

const string PIPE_CREAKING_SOUND_LOCATIONS[PIPE_CREAKING_SOUND_LOCATIONS_COUNT]
protected
Initial value:
= {
"pipe_creaking_sound_pos_1",
"pipe_creaking_sound_pos_2",
"pipe_creaking_sound_pos_3",
"pipe_creaking_sound_pos_4"
}

Definition at line 143 of file land_underground_waterreservoir.c.

◆ PIPE_CREAKING_SOUND_LOCATIONS_COUNT

const int PIPE_CREAKING_SOUND_LOCATIONS_COUNT = 4
protected

Definition at line 142 of file land_underground_waterreservoir.c.

◆ PIPE_INDEX_BROKEN1

const int PIPE_INDEX_BROKEN1 = 0
protected

Definition at line 49 of file land_underground_waterreservoir.c.

◆ PIPE_INDEX_BROKEN2

const int PIPE_INDEX_BROKEN2 = 1
protected

main broken pipe

Definition at line 50 of file land_underground_waterreservoir.c.

◆ PIPE_NAME_BROKEN1

const string PIPE_NAME_BROKEN1 = "pipe_broken_1"
protected

Definition at line 58 of file land_underground_waterreservoir.c.

◆ PIPE_NAME_BROKEN2

const string PIPE_NAME_BROKEN2 = "pipe_broken_2"
protected

Definition at line 59 of file land_underground_waterreservoir.c.

◆ PIPE_NAME_LEAKING_DRAIN

const string PIPE_NAME_LEAKING_DRAIN = "pipe_leaking_1"
protected

Definition at line 60 of file land_underground_waterreservoir.c.

◆ PIPE_NAME_LEAKING_FILL

const string PIPE_NAME_LEAKING_FILL = "pipe_leaking_2"
protected

Definition at line 61 of file land_underground_waterreservoir.c.

◆ PIPES_BROKEN_COUNT

const int PIPES_BROKEN_COUNT = 2
protected

Definition at line 48 of file land_underground_waterreservoir.c.

◆ PL_AVERAGE

const int PL_AVERAGE = 1
protected

Definition at line 41 of file land_underground_waterreservoir.c.

◆ PL_MAX

const int PL_MAX = 2
protected

Definition at line 42 of file land_underground_waterreservoir.c.

◆ PL_MIN

const int PL_MIN = 0
protected

Definition at line 40 of file land_underground_waterreservoir.c.

◆ PressureLevel

class WaterLevelSettings PressureLevel

◆ SOUND_NAME_PIPE_CREAKING

const string SOUND_NAME_PIPE_CREAKING = "WaterObjectUndergroundPipeCreaking_SoundSet"
protected

Definition at line 63 of file land_underground_waterreservoir.c.

◆ SOUND_NAME_PIPE_SPRINKLING_END

const string SOUND_NAME_PIPE_SPRINKLING_END = "WaterObjectUndergroundPipeSprinkling_End_SoundSet"
protected

Definition at line 66 of file land_underground_waterreservoir.c.

◆ SOUND_NAME_PIPE_SPRINKLING_LOOP1

const string SOUND_NAME_PIPE_SPRINKLING_LOOP1 = "WaterObjectUndergroundPipeSprinkling_Loop1_SoundSet"
protected

Definition at line 67 of file land_underground_waterreservoir.c.

◆ SOUND_NAME_PIPE_SPRINKLING_LOOP2

const string SOUND_NAME_PIPE_SPRINKLING_LOOP2 = "WaterObjectUndergroundPipeSprinkling_Loop2_SoundSet"
protected

Definition at line 68 of file land_underground_waterreservoir.c.

◆ SOUND_NAME_PIPE_SPRINKLING_START

const string SOUND_NAME_PIPE_SPRINKLING_START = "WaterObjectUndergroundPipeSprinkling_Start_SoundSet"
protected

Definition at line 65 of file land_underground_waterreservoir.c.

◆ SOUND_NAME_UPIPE_SPRINKLING_END

const string SOUND_NAME_UPIPE_SPRINKLING_END = "WaterObjectUndergroundUnderwaterPipe_End_SoundSet"
protected

Definition at line 70 of file land_underground_waterreservoir.c.

◆ SOUND_NAME_UPIPE_SPRINKLING_LOOP

const string SOUND_NAME_UPIPE_SPRINKLING_LOOP = "WaterObjectUndergroundUnderwaterPipe_Loop_SoundSet"
protected

Definition at line 71 of file land_underground_waterreservoir.c.

◆ SOUND_NAME_UPIPE_SPRINKLING_START

const string SOUND_NAME_UPIPE_SPRINKLING_START = "WaterObjectUndergroundUnderwaterPipe_Start_SoundSet"
protected

Definition at line 69 of file land_underground_waterreservoir.c.

◆ SOUND_NAME_VALVE_MANIPULATION

const string SOUND_NAME_VALVE_MANIPULATION = "WaterObjectUndergroundValve_SoundSet"
protected

Definition at line 64 of file land_underground_waterreservoir.c.

◆ SOUND_NAME_WATER_DRAIN_LOOP

const string SOUND_NAME_WATER_DRAIN_LOOP = "WaterObjectUndergroundUnderwaterEmpty_Loop_SoundSet"
protected

Definition at line 73 of file land_underground_waterreservoir.c.

◆ SOUND_NAME_WATER_FILL_LOOP

const string SOUND_NAME_WATER_FILL_LOOP = "WaterObjectUndergroundUnderwaterFill_Loop_SoundSet"
protected

Definition at line 72 of file land_underground_waterreservoir.c.

◆ VALVE_INDEX_DRAIN

const int VALVE_INDEX_DRAIN = 0
protected

Definition at line 45 of file land_underground_waterreservoir.c.

◆ VALVE_INDEX_FILL

const int VALVE_INDEX_FILL = 1
protected

Definition at line 46 of file land_underground_waterreservoir.c.

◆ VALVE_NAME_DRAIN

const string VALVE_NAME_DRAIN = "valve1"
protected

Definition at line 56 of file land_underground_waterreservoir.c.

◆ VALVE_NAME_FILL

const string VALVE_NAME_FILL = "valve2"
protected

Definition at line 57 of file land_underground_waterreservoir.c.

◆ VALVES_COUNT

const int VALVES_COUNT = 2
protected

Definition at line 44 of file land_underground_waterreservoir.c.

◆ WATER_LEVELS

const string WATER_LEVELS[WATER_LEVELS_COUNT]
protected
Initial value:
= {
WATER_LEVEL_MAX,
WATER_LEVEL_AVERAGE,
WATER_LEVEL_ABOVE_PIPES,
WATER_LEVEL_MIN
}

Definition at line 101 of file land_underground_waterreservoir.c.

◆ WATER_LEVELS_COUNT

const int WATER_LEVELS_COUNT = 4
protected

Definition at line 100 of file land_underground_waterreservoir.c.

◆ WL_ABOVE_PIPES

const int WL_ABOVE_PIPES = 1
protected

Definition at line 36 of file land_underground_waterreservoir.c.

◆ WL_AVERAGE

const int WL_AVERAGE = 2
protected

Definition at line 37 of file land_underground_waterreservoir.c.

◆ WL_MAX

const int WL_MAX = 3
protected

Definition at line 38 of file land_underground_waterreservoir.c.

◆ WL_MIN

const int WL_MIN = 0
protected

Definition at line 35 of file land_underground_waterreservoir.c.