Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
land_underground_panel.c File Reference

Go to the source code of this file.

Enumerations

enum  ELEDState { OFF , BLINKING , ON }

Functions

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

Variables

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

Enumeration Type Documentation

◆ ELEDState

enum ELEDState
Enumerator
OFF 
BLINKING 
ON 

Definition at line 1 of file land_underground_panel.c.

Function Documentation

◆ ~Land_Underground_Panel()

Definition at line 46 of file land_underground_panel.c.

References UnregisterPanel().

◆ CanInteract()

bool CanInteract ( )

◆ GetClosestDoor()

Land_Underground_EntranceBase GetClosestDoor ( )

Definition at line 140 of file land_underground_panel.c.

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 )

Definition at line 270 of file land_underground_panel.c.

References GetLinkedDoorType(), and SetLEDState().

◆ OnLEDStateChanged()

◆ OnPanelUsedSynchronized()

void OnPanelUsedSynchronized ( )
protected

Definition at line 344 of file land_underground_panel.c.

References m_ActivationSound.

Referenced by OnVariablesSynchronized().

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )
protected

Definition at line 349 of file land_underground_panel.c.

References m_PanelWasUsedPrev, and OnPanelUsedSynchronized().

◆ RegisterEntrance()

void RegisterEntrance ( Land_Underground_EntranceBase entrance)
static

Definition at line 78 of file land_underground_panel.c.

References m_Entrances.

◆ RegisterPanel()

void RegisterPanel ( Land_Underground_Panel panel)
static

Definition at line 103 of file land_underground_panel.c.

References Land_Underground_Panel(), and m_Panels.

Referenced by Land_Underground_Panel().

◆ ResetPanelUsed()

void ResetPanelUsed ( )

Definition at line 264 of file land_underground_panel.c.

Referenced by Interact().

◆ SetBlinkingTimer()

void SetBlinkingTimer ( bool enable)

Definition at line 186 of file land_underground_panel.c.

References m_FlipFlopTimer.

Referenced by OnLEDStateChanged().

◆ SetLEDState()

void SetLEDState ( ELEDColors color,
ELEDState state )

◆ ToggleFlipFlop()

void ToggleFlipFlop ( )
protected

Definition at line 338 of file land_underground_panel.c.

References m_BlinkingFlipFlop, and OnLEDStateChanged().

◆ UnregisterEntrance()

void UnregisterEntrance ( Land_Underground_EntranceBase entrance)
static

Definition at line 87 of file land_underground_panel.c.

References ErrorEx, and m_Entrances.

◆ UnregisterPanel()

void UnregisterPanel ( Land_Underground_Panel panel)
static

Definition at line 112 of file land_underground_panel.c.

References ErrorEx, Land_Underground_Panel(), and m_Panels.

Referenced by ~Land_Underground_Panel().

◆ UpdateLED()

void UpdateLED ( string selection,
string color )
protected

Definition at line 331 of file land_underground_panel.c.

Referenced by EEKilled(), OnCEUpdate(), OnLEDStateChanged(), and OnWasDetached().

Variable Documentation

◆ COLOR_LED_GREEN

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

Definition at line 22 of file land_underground_panel.c.

Referenced by OnLEDStateChanged().

◆ COLOR_LED_OFF

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

Definition at line 21 of file land_underground_panel.c.

Referenced by OnLEDStateChanged(), and UpdateLED().

◆ COLOR_LED_RED

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

Definition at line 23 of file land_underground_panel.c.

Referenced by OnLEDStateChanged().

◆ GREEN

enum ELEDState GREEN

◆ m_ActivationSound

EffectSound m_ActivationSound

Definition at line 33 of file land_underground_panel.c.

Referenced by OnPanelUsedSynchronized().

◆ m_BlinkingFlipFlop

bool m_BlinkingFlipFlop

Definition at line 30 of file land_underground_panel.c.

Referenced by OnLEDStateChanged(), and ToggleFlipFlop().

◆ m_Entrances

enum ELEDState m_Entrances

◆ m_FlipFlopTimer

ref Timer m_FlipFlopTimer

Definition at line 31 of file land_underground_panel.c.

Referenced by SetBlinkingTimer().

◆ m_LedStateGreen

ELEDState m_LedStateGreen

Definition at line 36 of file land_underground_panel.c.

Referenced by OnLEDStateChanged(), and SetLEDState().

◆ m_LedStateRed

ELEDState m_LedStateRed

Definition at line 35 of file land_underground_panel.c.

Referenced by OnLEDStateChanged(), and SetLEDState().

◆ m_LinkedDoor

Definition at line 19 of file land_underground_panel.c.

Referenced by GetLinkedDoor().

◆ m_Panels

ref set<Land_Underground_Panel> m_Panels
static

◆ m_PanelWasUsedPrev

bool m_PanelWasUsed bool m_PanelWasUsedPrev

Definition at line 29 of file land_underground_panel.c.

Referenced by OnVariablesSynchronized().

◆ RED

enum ELEDState RED

◆ SELECTION_NAME_LED_GREEN

const string SELECTION_NAME_LED_GREEN = "LED_Green"

Definition at line 26 of file land_underground_panel.c.

Referenced by OnLEDStateChanged().

◆ SELECTION_NAME_LED_RED

const string SELECTION_NAME_LED_RED = "LED_Red"

Definition at line 25 of file land_underground_panel.c.

Referenced by OnLEDStateChanged().