DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс GPSReceiver
+ Граф наследования:GPSReceiver:

Защищенные члены

void GPSReceiver ()
 
void PositionalUpdate ()
 
override void OnMovedInsideCargo (EntityAI container)
 need to be overriden, otherwise the item will be turned off when moved to cargo
 
override void SetActions ()
 
override bool IsTurnedOn ()
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
override void OnWork (float consumed_energy)
 
void UpdateDisplayState (bool pIsTurnedOn)
 
void UpdateDisplayPosition ()
 
void UpdateDisplayElevation ()
 
int GetHiddenSelection (string selection)
 
override void OnDebugSpawn ()
 

Защищенные данные

ref set< stringm_DisplayGridSelections
 
ref set< stringm_DisplayAltSelections
 
ref map< int, stringm_DisplayNumericSignTextureMap
 
ref array< intm_OrderedPositionNumbersLast
 cache
 
ref array< intm_AltitudeNumbersLast
 

Закрытые данные

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

Подробное описание

Конструктор(ы)

◆ GPSReceiver()

void GPSReceiver ( )
inlineprotected

translate numerical -1 to - texture

16 {
19
20 int i;
21 for (i = 0; i < MapNavigationBehaviour.DISPLAY_GRID_POS_MAX_CHARS_COUNT * 2; ++i)
22 {
24 }
25
26 for (i = 0; i < MapNavigationBehaviour.DISPLAY_ALT_MAX_CHARS_COUNT; ++i)
27 {
28 m_AltitudeNumbersLast.Insert(0);
29 }
30
32 m_DisplayGridSelections.Insert("grid_1_0");
33 m_DisplayGridSelections.Insert("grid_1_1");
34 m_DisplayGridSelections.Insert("grid_1_2");
35 m_DisplayGridSelections.Insert("grid_2_0");
36 m_DisplayGridSelections.Insert("grid_2_1");
37 m_DisplayGridSelections.Insert("grid_2_2");
38
40 m_DisplayAltSelections.Insert("alt_0");
41 m_DisplayAltSelections.Insert("alt_1");
42 m_DisplayAltSelections.Insert("alt_2");
43 m_DisplayAltSelections.Insert("alt_3");
44
46 for (i = -1; i < 11; i++)
47 {
48
49 string texturePath = string.Format(DISPLAY_TEXTURE_PATH_FORMAT, i);
50
52 if (i == -1)
53 {
54 texturePath = string.Format(DISPLAY_TEXTURE_PATH_FORMAT, "dash");
55 }
56
58 }
59 }
void MapNavigationBehaviour(PlayerBase pPlayer, EMapNavigationType pNavigationType=EMapNavigationType.BASIC)
Definition MapNavigationBehaviour.c:27
ref set< string > m_DisplayAltSelections
Definition GPSReceiver.c:8
ref array< int > m_OrderedPositionNumbersLast
cache
Definition GPSReceiver.c:12
ref array< int > m_AltitudeNumbersLast
Definition GPSReceiver.c:13
ref set< string > m_DisplayGridSelections
Definition GPSReceiver.c:7
ref map< int, string > m_DisplayNumericSignTextureMap
Definition GPSReceiver.c:9
const string DISPLAY_TEXTURE_PATH_FORMAT
Definition GPSReceiver.c:4
Definition EntityAI.c:95

Перекрестные ссылки DISPLAY_TEXTURE_PATH_FORMAT, m_AltitudeNumbersLast, m_DisplayAltSelections, m_DisplayGridSelections, m_DisplayNumericSignTextureMap, m_OrderedPositionNumbersLast и MapNavigationBehaviour().

Методы

◆ GetHiddenSelection()

int GetHiddenSelection ( string selection)
inlineprotected
162 {
163 int idx = GetHiddenSelectionIndex(selection);
164
165 if (idx != INDEX_NOT_FOUND)
166 {
167 return idx;
168 }
169 else
170 {
171 return 0;
172 }
173 }
const int INDEX_NOT_FOUND
Definition gameplay.c:13

Перекрестные ссылки INDEX_NOT_FOUND.

Используется в UpdateDisplayElevation() и UpdateDisplayPosition().

◆ IsTurnedOn()

override bool IsTurnedOn ( )
inlineprotected
79 {
80 return GetCompEM() && GetCompEM().IsWorking();
81 }

◆ OnDebugSpawn()

override void OnDebugSpawn ( )
inlineprotected
180 {
181 Battery9V.Cast(GetInventory().CreateInInventory("Battery9V"));
182 }
Definition Battery9V.c:2

◆ OnMovedInsideCargo()

override void OnMovedInsideCargo ( EntityAI container)
protected

need to be overriden, otherwise the item will be turned off when moved to cargo

◆ OnWork()

override void OnWork ( float consumed_energy)
inlineprotected
113 {
115 }
void PositionalUpdate()
Definition GPSReceiver.c:61

Перекрестные ссылки PositionalUpdate().

◆ OnWorkStart()

override void OnWorkStart ( )
inlineprotected
85 {
87
88 if (GetHierarchyRoot())
89 {
90 PlayerBase pb = PlayerBase.Cast(GetHierarchyRoot());
91 if (pb)
92 {
93 pb.MapNavigationItemInPossession(this);
94 }
95 }
96 }
void UpdateDisplayState(bool pIsTurnedOn)
Definition GPSReceiver.c:118
Definition PlayerBaseClient.c:2

Перекрестные ссылки UpdateDisplayState().

◆ OnWorkStop()

override void OnWorkStop ( )
inlineprotected
99 {
100 UpdateDisplayState(false);
101
102 if (GetHierarchyRoot())
103 {
104 PlayerBase pb = PlayerBase.Cast(GetHierarchyRoot());
105 if (pb)
106 {
107 pb.MapNavigationItemNotInPossession(this);
108 }
109 }
110 }

Перекрестные ссылки UpdateDisplayState().

◆ PositionalUpdate()

void PositionalUpdate ( )
inlineprotected
62 {
65 }
void UpdateDisplayElevation()
Definition GPSReceiver.c:142
void UpdateDisplayPosition()
Definition GPSReceiver.c:123

Перекрестные ссылки UpdateDisplayElevation() и UpdateDisplayPosition().

Используется в OnWork().

◆ SetActions()

override void SetActions ( )
inlineprotected
71 {
72 super.SetActions();
73
76 }
void AddAction(typename actionName)
Definition AdvancedCommunication.c:220
Definition ActionTurnOffWhileInHands.c:2
Definition ActionTurnOnWhileInHands.c:2

Перекрестные ссылки AddAction().

◆ UpdateDisplayElevation()

void UpdateDisplayElevation ( )
inlineprotected
143 {
144 int selectionIndex;
145 string selectionName;
146 array<int> altitudeNumbers = MapNavigationBehaviour.OrderedAltitudeNumbersPosition(this);
147
148 if (altitudeNumbers.DifferentAtPosition(m_AltitudeNumbersLast) != INDEX_NOT_FOUND)
149 {
150 for (int i = 0; i < m_DisplayAltSelections.Count(); ++i)
151 {
155 }
156
158 }
159 }
int GetHiddenSelection(string selection)
Definition GPSReceiver.c:161

Перекрестные ссылки GetHiddenSelection(), INDEX_NOT_FOUND, m_AltitudeNumbersLast, m_DisplayAltSelections, m_DisplayNumericSignTextureMap и MapNavigationBehaviour().

Используется в PositionalUpdate().

◆ UpdateDisplayPosition()

void UpdateDisplayPosition ( )
inlineprotected

◆ UpdateDisplayState()

void UpdateDisplayState ( bool pIsTurnedOn)
inlineprotected
119 {
120 SetAnimationPhaseNow(ANIM_PHASE_DISPLAY_HIDE, !pIsTurnedOn);
121 }
const string ANIM_PHASE_DISPLAY_HIDE
Definition GPSReceiver.c:5

Перекрестные ссылки ANIM_PHASE_DISPLAY_HIDE.

Используется в OnWorkStart() и OnWorkStop().

Поля

◆ ANIM_PHASE_DISPLAY_HIDE

const string ANIM_PHASE_DISPLAY_HIDE = "DisplayState"
private

Используется в UpdateDisplayState().

◆ DISPLAY_TEXTURE_PATH_FORMAT

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

Используется в GPSReceiver().

◆ m_AltitudeNumbersLast

ref array<int> m_AltitudeNumbersLast
protected

Используется в GPSReceiver() и UpdateDisplayElevation().

◆ m_DisplayAltSelections

ref set<string> m_DisplayAltSelections
protected

Используется в GPSReceiver() и UpdateDisplayElevation().

◆ m_DisplayGridSelections

ref set<string> m_DisplayGridSelections
protected

Используется в GPSReceiver() и UpdateDisplayPosition().

◆ m_DisplayNumericSignTextureMap

ref map<int, string> m_DisplayNumericSignTextureMap
protected

◆ m_OrderedPositionNumbersLast

ref array<int> m_OrderedPositionNumbersLast
protected

cache

Используется в GPSReceiver() и UpdateDisplayPosition().


Объявления и описания членов класса находятся в файле: