Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс UniversalTemperatureSourceDebug

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

void UniversalTemperatureSource (EntityAI pParent, UniversalTemperatureSourceSettings pSettings, UniversalTemperatureSourceLambdaBase pLambda)
 
void ~UniversalTemperatureSource ()
 
void Init (EntityAI pParent)
 
vector GetPosition ()
 
float GetFullRange ()
 
float GetMaxRange ()
 
float GetTemperature ()
 
float GetTemperatureRaw ()
 
float GetTemperatureMin ()
 
float GetTemperatureMax ()
 
EntityAI GetParent ()
 
bool IsActive ()
 
void SetActive (bool pActive)
 
void SetDefferedActive (bool pActive, float pSeconds)
 
void ChangeSettings (UniversalTemperatureSourceSettings pSettings)
 
void Update (UniversalTemperatureSourceSettings settings, UniversalTemperatureSourceLambdaBase lambda)
 

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

ref UniversalTemperatureSourceTimer m_Timer
 
UniversalTemperatureSourceSettings m_Settings
 
ref UniversalTemperatureSourceResult m_ResultValues
 
ref UniversalTemperatureSourceLambdaBase m_Lambda
 

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

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

◆ ~UniversalTemperatureSource()

void ~UniversalTemperatureSource ( )
inlineprotected
72{};

Методы

◆ ChangeSettings()

void ChangeSettings ( UniversalTemperatureSourceSettings pSettings)
inlineprotected
177 {
179 }
Definition EntityAI.c:95
ref UniversalTemperatureSourceLambdaBase m_Lambda
Definition UniversalTemperatureSource.c:59
ref UniversalTemperatureSourceTimer m_Timer
Definition UniversalTemperatureSource.c:56
UniversalTemperatureSourceSettings m_Settings
Definition UniversalTemperatureSource.c:57

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

◆ GetFullRange()

float GetFullRange ( )
inlineprotected
99 {
100 return m_Settings.m_RangeFull;
101 }
float m_RangeFull
temperature cap that will limit the return value from GetTemperature method
Definition UniversalTemperatureSource.c:7

Перекрестные ссылки UniversalTemperatureSourceSettings::m_RangeFull.

◆ GetMaxRange()

float GetMaxRange ( )
inlineprotected
104 {
105 return m_Settings.m_RangeMax;
106 }
float m_RangeMax
range where the full temperature is given to receiver
Definition UniversalTemperatureSource.c:8

Перекрестные ссылки UniversalTemperatureSourceSettings::m_RangeMax.

◆ GetParent()

EntityAI GetParent ( )
inlineprotected
139 {
140 return m_Settings.m_Parent;
141 }
EntityAI m_Parent
Definition UniversalTemperatureSource.c:15

Перекрестные ссылки UniversalTemperatureSourceSettings::m_Parent.

◆ GetPosition()

vector GetPosition ( )
inlineprotected
94 {
96 }
vector m_Position
if the temperature generated is also set as Temperature Stat on Item itself
Definition UniversalTemperatureSource.c:14

Перекрестные ссылки UniversalTemperatureSourceSettings::m_Position.

◆ GetTemperature()

float GetTemperature ( )
inlineprotected
109 {
110 if (m_Settings.m_TemperatureCap != float.MAX)
111 {
113 }
114
115 return GetTemperatureRaw();
116 }
Definition EnMath.c:7
float GetTemperatureRaw()
Definition UniversalTemperatureSource.c:118
float m_TemperatureCap
max temperature you can get from the TemperatureSource
Definition UniversalTemperatureSource.c:6
const float MAX
Definition EnConvert.c:99
static proto float Min(float x, float y)
Returns smaller of two given values.

Перекрестные ссылки UniversalTemperatureSourceSettings::m_TemperatureCap, float::MAX и Math::Min().

◆ GetTemperatureMax()

float GetTemperatureMax ( )
inlineprotected
134 {
136 }
float m_TemperatureMax
min temperature you can get from the TemperatureSource
Definition UniversalTemperatureSource.c:5

Перекрестные ссылки UniversalTemperatureSourceSettings::m_TemperatureMax.

◆ GetTemperatureMin()

float GetTemperatureMin ( )
inlineprotected
129 {
131 }
float m_TemperatureMin
how often the Update is ticking
Definition UniversalTemperatureSource.c:4

Перекрестные ссылки UniversalTemperatureSourceSettings::m_TemperatureMin.

◆ GetTemperatureRaw()

float GetTemperatureRaw ( )
inlineprotected
119 {
120 if (m_ResultValues)
121 {
122 return m_ResultValues.m_Temperature;
123 }
124
125 return 0;
126 }
ref UniversalTemperatureSourceResult m_ResultValues
Definition UniversalTemperatureSource.c:58

◆ Init()

void Init ( EntityAI pParent)
inlineprotected
75 {
76 if (pParent)
77 {
78 pParent.SetUniversalTemperatureSource(this);
79
81 m_Settings.m_Position = pParent.GetPosition();
82 }
83
85 {
87
89 SetActive(false);
90 }
91 }
void SetActive()
Definition TrapBase.c:437
bool m_Updateable
maximum range where the receiver can get some temperature
Definition UniversalTemperatureSource.c:10
bool m_ManualUpdate
if the Update is running periodically
Definition UniversalTemperatureSource.c:11
float m_UpdateInterval
Definition UniversalTemperatureSource.c:3

Перекрестные ссылки UniversalTemperatureSourceSettings::m_ManualUpdate, UniversalTemperatureSourceSettings::m_Parent, UniversalTemperatureSourceSettings::m_Position, m_Timer, UniversalTemperatureSourceSettings::m_Updateable, UniversalTemperatureSourceSettings::m_UpdateInterval и SetActive().

◆ IsActive()

bool IsActive ( )
inlineprotected
144 {
146 {
147 return m_Active;
148 }
149
150 return m_Timer && m_Timer.IsRunning();
151 }

Перекрестные ссылки UniversalTemperatureSourceSettings::m_ManualUpdate и m_Timer.

◆ SetActive()

void SetActive ( bool pActive)
inlineprotected
154 {
156 {
157 m_Active = pActive;
158 return;
159 }
160
161 if (pActive && !m_Timer.IsRunning())
162 {
163 m_Timer.Continue();
164 }
165 else
166 {
167 m_Timer.Stop();
168 }
169 }

Перекрестные ссылки UniversalTemperatureSourceSettings::m_ManualUpdate и m_Timer.

◆ SetDefferedActive()

void SetDefferedActive ( bool pActive,
float pSeconds )
inlineprotected
172 {
173 GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLaterByName(this, "SetActive", pSeconds * 1000, false, new Param1<bool>(pActive));
174 }
proto native CGame GetGame()
const int CALL_CATEGORY_GAMEPLAY
Definition tools.c:10

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

◆ UniversalTemperatureSource()

62 {
63 m_Active = false;
68
70 }
override Widget Init()
Definition DayZGame.c:122

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

◆ Update()

182 {
183 if (!IsActive())
184 {
185 return;
186 }
187
188 if (lambda)
189 {
190 settings.m_Position = settings.m_Parent.GetUniversalTemperatureSourcePosition();
192 }
193
194 }
bool IsActive()
Definition UniversalTemperatureSource.c:143

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

Поля

◆ m_Lambda

◆ m_ResultValues

ref UniversalTemperatureSourceResult m_ResultValues
protected

◆ m_Settings

UniversalTemperatureSourceSettings m_Settings
protected

◆ m_Timer


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