21 protected DSLevelsTemp
DetermineLevel(
float value,
float m_warning_treshold,
float m_critical_treshold,
float m_empty_treshold,
float p_warning_treshold,
float p_critical_treshold,
float p_empty_treshold )
23 DSLevelsTemp level = DSLevelsTemp.NORMAL;
27 if(value < m_warning_treshold) level = DSLevelsTemp.WARNING_MINUS;
28 if(value < m_critical_treshold) level = DSLevelsTemp.CRITICAL_MINUS;
29 if(value <= m_empty_treshold) level = DSLevelsTemp.BLINKING_MINUS;
33 if(value > p_warning_treshold) level = DSLevelsTemp.WARNING_PLUS;
34 if(value > p_critical_treshold) level = DSLevelsTemp.CRITICAL_PLUS;
35 if(value >= p_empty_treshold) level = DSLevelsTemp.BLINKING_PLUS;
51 dis_elm.SetTendency(tendency);
52 dis_elm.SetSeriousnessLevel(level);
58 return m_Player.GetStatHeatComfort().Get();
DisplayElementBase GetElement(eDisplayElements element_id)
void NotifiersManager(PlayerBase player)
protected int CalculateTendency(float delta, float inctresholdlow, float inctresholdmed, float inctresholdhigh, float dectresholdlow, float dectresholdmed, float dectresholdhigh)
VirtualHud GetVirtualHud()
static const float THRESHOLD_HEAT_COMFORT_MINUS_WARNING
static const float THRESHOLD_HEAT_COMFORT_PLUS_WARNING
static const float THRESHOLD_HEAT_COMFORT_PLUS_EMPTY
static const float THRESHOLD_HEAT_COMFORT_MINUS_CRITICAL
static const float THRESHOLD_HEAT_COMFORT_MINUS_EMPTY
static const float THRESHOLD_HEAT_COMFORT_PLUS_CRITICAL
private const float DEC_TRESHOLD_LOW
void WarmthNotfr(NotifiersManager manager)
private const float DEC_TRESHOLD_HIGH
override protected float GetObservedValue()
private const float INC_TRESHOLD_LOW
private const float INC_TRESHOLD_MED
override void DisplayTendency(float delta)
private const float INC_TRESHOLD_HIGH
private const float DEC_TRESHOLD_MED
protected DSLevelsTemp DetermineLevel(float value, float m_warning_treshold, float m_critical_treshold, float m_empty_treshold, float p_warning_treshold, float p_critical_treshold, float p_empty_treshold)
override int GetNotifierType()