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

Enumerations

enum  ELEDState { OFF , BLINKING , ON }
 

Functions

void Land_Underground_Panel ()
 
void ~Land_Underground_Panel ()
 
bool CanInteract ()
 
void Interact ()
 
static void RegisterEntrance (Land_Underground_EntranceBase entrance)
 
static void UnregisterEntrance (Land_Underground_EntranceBase entrance)
 
static void RegisterPanel (Land_Underground_Panel panel)
 
static void UnregisterPanel (Land_Underground_Panel panel)
 
EUndegroundDoorType GetLinkedDoorType ()
 
Land_Underground_EntranceBase GetLinkedDoor ()
 
Land_Underground_EntranceBase GetClosestDoor ()
 
void SetLEDState (ELEDColors color, ELEDState state)
 
void SetBlinkingTimer (bool enable)
 
void OnLEDStateChanged ()
 
void ResetPanelUsed ()
 
void OnDoorStateChangedClient (EUndegroundEntranceState newState, EUndegroundEntranceState prevState)
 
protected void UpdateLED (string selection, string color)
 
void ToggleFlipFlop ()
 
void OnPanelUsedSynchronized ()
 
override void OnVariablesSynchronized ()
 

Variables

enum ELEDState RED
 
enum ELEDState GREEN
 
enum ELEDState m_Entrances
 
static ref set< Land_Underground_Panelm_Panels
 
Land_Underground_EntranceBase m_LinkedDoor
 
const string COLOR_LED_OFF = "#(argb,8,8,3)color(0,0,0,1.0,co)"
 
const string COLOR_LED_GREEN = "#(argb,8,8,3)color(0,1,0,1.0,co)"
 
const string COLOR_LED_RED = "#(argb,8,8,3)color(1,0,0,1.0,co)"
 
const string SELECTION_NAME_LED_RED = "LED_Red"
 
const string SELECTION_NAME_LED_GREEN = "LED_Green"
 
bool m_PanelWasUsed bool m_PanelWasUsedPrev
 
bool m_BlinkingFlipFlop
 
ref Timer m_FlipFlopTimer
 
EffectSound m_ActivationSound
 
ELEDState m_LedStateRed
 
ELEDState m_LedStateGreen
 

Enumeration Type Documentation

◆ ELEDState

enum ELEDState
Enumerator
OFF 
BLINKING 
ON 

Function Documentation

◆ CanInteract()

◆ GetClosestDoor()

Land_Underground_EntranceBase GetClosestDoor ( )

References vector::DistanceSq(), GetPosition, and m_Entrances.

Referenced by GetLinkedDoor().

◆ GetLinkedDoor()

◆ GetLinkedDoorType()

EUndegroundDoorType GetLinkedDoorType ( )

◆ Interact()

◆ Land_Underground_Panel()

◆ OnDoorStateChangedClient()

void OnDoorStateChangedClient ( EUndegroundEntranceState  newState,
EUndegroundEntranceState  prevState 
)

◆ OnLEDStateChanged()

◆ OnPanelUsedSynchronized()

void OnPanelUsedSynchronized ( )

References m_ActivationSound.

Referenced by OnVariablesSynchronized().

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )

◆ RegisterEntrance()

static void RegisterEntrance ( Land_Underground_EntranceBase  entrance)
static

References m_Entrances.

◆ RegisterPanel()

static void RegisterPanel ( Land_Underground_Panel  panel)
static

References m_Panels.

Referenced by Land_Underground_Panel().

◆ ResetPanelUsed()

void ResetPanelUsed ( )

Referenced by Interact().

◆ SetBlinkingTimer()

void SetBlinkingTimer ( bool  enable)

References m_FlipFlopTimer.

Referenced by OnLEDStateChanged().

◆ SetLEDState()

void SetLEDState ( ELEDColors  color,
ELEDState  state 
)

◆ ToggleFlipFlop()

void ToggleFlipFlop ( )

◆ UnregisterEntrance()

static void UnregisterEntrance ( Land_Underground_EntranceBase  entrance)
static

References ErrorEx, and m_Entrances.

◆ UnregisterPanel()

static void UnregisterPanel ( Land_Underground_Panel  panel)
static

References ErrorEx, and m_Panels.

Referenced by ~Land_Underground_Panel().

◆ UpdateLED()

protected void UpdateLED ( string  selection,
string  color 
)

◆ ~Land_Underground_Panel()

Variable Documentation

◆ COLOR_LED_GREEN

const string COLOR_LED_GREEN = "#(argb,8,8,3)color(0,1,0,1.0,co)"

Referenced by OnLEDStateChanged().

◆ COLOR_LED_OFF

const string COLOR_LED_OFF = "#(argb,8,8,3)color(0,0,0,1.0,co)"

Referenced by OnLEDStateChanged(), and UpdateLED().

◆ COLOR_LED_RED

const string COLOR_LED_RED = "#(argb,8,8,3)color(1,0,0,1.0,co)"

Referenced by OnLEDStateChanged().

◆ GREEN

enum ELEDState GREEN

◆ m_ActivationSound

EffectSound m_ActivationSound

Referenced by OnPanelUsedSynchronized().

◆ m_BlinkingFlipFlop

bool m_BlinkingFlipFlop

◆ m_Entrances

enum ELEDState m_Entrances

◆ m_FlipFlopTimer

ref Timer m_FlipFlopTimer

Referenced by SetBlinkingTimer().

◆ m_LedStateGreen

ELEDState m_LedStateGreen

Referenced by OnLEDStateChanged(), and SetLEDState().

◆ m_LedStateRed

ELEDState m_LedStateRed

Referenced by OnLEDStateChanged(), and SetLEDState().

◆ m_LinkedDoor

Referenced by GetLinkedDoor().

◆ m_Panels

◆ m_PanelWasUsedPrev

bool m_PanelWasUsed bool m_PanelWasUsedPrev

Referenced by OnVariablesSynchronized().

◆ RED

enum ELEDState RED

◆ SELECTION_NAME_LED_GREEN

const string SELECTION_NAME_LED_GREEN = "LED_Green"

Referenced by OnLEDStateChanged().

◆ SELECTION_NAME_LED_RED

const string SELECTION_NAME_LED_RED = "LED_Red"

Referenced by OnLEDStateChanged().