Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
GPSReceiver Class Reference
Inheritance diagram for GPSReceiver:

Protected Member Functions

void GPSReceiver ()
int GetHiddenSelection (string selection)
override bool IsTurnedOn ()
override void OnDebugSpawn ()
override void OnWork (float consumed_energy)
override void OnWorkStart ()
override void OnWorkStop ()
void PositionalUpdate ()
override void SetActions ()
void UpdateDisplayElevation ()
void UpdateDisplayPosition ()
void UpdateDisplayState (bool pIsTurnedOn)
void UpdateDisplayState (int animPhase)

Protected Attributes

const string ANIM_PHASE_DISPLAY_HIDE = "DisplayState"
const string DISPLAY_TEXTURE_PATH_FORMAT = "dz\\gear\\navigation\\data\\GPS_%1_ca.paa"
ref array< intm_AltitudeNumbersLast
ref set< stringm_DisplayAltSelections
ref set< stringm_DisplayGridSelections
ref map< int, stringm_DisplayNumericSignTextureMap
bool m_InitGPS
ref array< intm_OrderedPositionNumbersLast
 cache
const int PHASE_OFF = 1
const int PHASE_ON = 0

Detailed Description

Definition at line 1 of file gpsreceiver.c.

Constructor & Destructor Documentation

◆ GPSReceiver()

Member Function Documentation

◆ GetHiddenSelection()

int GetHiddenSelection ( string selection)
inlineprotected

Definition at line 169 of file gpsreceiver.c.

References INDEX_NOT_FOUND.

Referenced by UpdateDisplayElevation(), and UpdateDisplayPosition().

◆ IsTurnedOn()

override bool IsTurnedOn ( )
inlineprotected

Definition at line 83 of file gpsreceiver.c.

◆ OnDebugSpawn()

override void OnDebugSpawn ( )
inlineprotected

Definition at line 187 of file gpsreceiver.c.

◆ OnWork()

override void OnWork ( float consumed_energy)
inlineprotected

Definition at line 116 of file gpsreceiver.c.

References PositionalUpdate().

◆ OnWorkStart()

override void OnWorkStart ( )
inlineprotected

Definition at line 88 of file gpsreceiver.c.

References PHASE_ON, and UpdateDisplayState().

◆ OnWorkStop()

override void OnWorkStop ( )
inlineprotected

Definition at line 102 of file gpsreceiver.c.

References PHASE_OFF, and UpdateDisplayState().

◆ PositionalUpdate()

void PositionalUpdate ( )
inlineprotected

Definition at line 66 of file gpsreceiver.c.

References m_InitGPS, UpdateDisplayElevation(), and UpdateDisplayPosition().

Referenced by OnWork().

◆ SetActions()

override void SetActions ( )
inlineprotected

Definition at line 75 of file gpsreceiver.c.

References AddAction().

◆ UpdateDisplayElevation()

void UpdateDisplayElevation ( )
inlineprotected

◆ UpdateDisplayPosition()

void UpdateDisplayPosition ( )
inlineprotected

◆ UpdateDisplayState() [1/2]

void UpdateDisplayState ( bool pIsTurnedOn)
inlineprotected

Definition at line 196 of file gpsreceiver.c.

References PHASE_OFF, PHASE_ON, and UpdateDisplayState().

◆ UpdateDisplayState() [2/2]

void UpdateDisplayState ( int animPhase)
inlineprotected

Definition at line 121 of file gpsreceiver.c.

References ANIM_PHASE_DISPLAY_HIDE, and PHASE_OFF.

Referenced by OnWorkStart(), OnWorkStop(), and UpdateDisplayState().

Field Documentation

◆ ANIM_PHASE_DISPLAY_HIDE

const string ANIM_PHASE_DISPLAY_HIDE = "DisplayState"
protected

Definition at line 5 of file gpsreceiver.c.

Referenced by UpdateDisplayState().

◆ DISPLAY_TEXTURE_PATH_FORMAT

const string DISPLAY_TEXTURE_PATH_FORMAT = "dz\\gear\\navigation\\data\\GPS_%1_ca.paa"
protected

Definition at line 4 of file gpsreceiver.c.

Referenced by GPSReceiver().

◆ m_AltitudeNumbersLast

ref array<int> m_AltitudeNumbersLast
protected

Definition at line 16 of file gpsreceiver.c.

Referenced by GPSReceiver(), and UpdateDisplayElevation().

◆ m_DisplayAltSelections

ref set<string> m_DisplayAltSelections
protected

Definition at line 11 of file gpsreceiver.c.

Referenced by GPSReceiver(), and UpdateDisplayElevation().

◆ m_DisplayGridSelections

ref set<string> m_DisplayGridSelections
protected

Definition at line 10 of file gpsreceiver.c.

Referenced by GPSReceiver(), and UpdateDisplayPosition().

◆ m_DisplayNumericSignTextureMap

ref map<int, string> m_DisplayNumericSignTextureMap
protected

Definition at line 12 of file gpsreceiver.c.

Referenced by GPSReceiver(), UpdateDisplayElevation(), and UpdateDisplayPosition().

◆ m_InitGPS

bool m_InitGPS
protected

Definition at line 18 of file gpsreceiver.c.

Referenced by PositionalUpdate(), UpdateDisplayElevation(), and UpdateDisplayPosition().

◆ m_OrderedPositionNumbersLast

ref array<int> m_OrderedPositionNumbersLast
protected

cache

Definition at line 15 of file gpsreceiver.c.

Referenced by GPSReceiver(), and UpdateDisplayPosition().

◆ PHASE_OFF

const int PHASE_OFF = 1
protected

Definition at line 7 of file gpsreceiver.c.

Referenced by OnWorkStop(), UpdateDisplayState(), and UpdateDisplayState().

◆ PHASE_ON

const int PHASE_ON = 0
protected

Definition at line 8 of file gpsreceiver.c.

Referenced by OnWorkStart(), and UpdateDisplayState().


The documentation for this class was generated from the following file:
  • F:/Games/Dayz/scripts/4_world/entities/itembase/gear/navigation/gpsreceiver.c