3 private const float DEC_TRESHOLD_LOW = 0;
4 private const float DEC_TRESHOLD_MED = -0.2;
5 private const float DEC_TRESHOLD_HIGH = -0.3;
6 private const float INC_TRESHOLD_LOW = 0;
7 private const float INC_TRESHOLD_MED = 0.2;
8 private const float INC_TRESHOLD_HIGH = 0.3;
12 m_TendencyBufferSize = 6;
15 override int GetNotifierType()
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;
41 override void DisplayTendency(
float delta)
43 int tendency = CalculateTendency(delta, INC_TRESHOLD_LOW, INC_TRESHOLD_MED, INC_TRESHOLD_HIGH, DEC_TRESHOLD_LOW, DEC_TRESHOLD_MED, DEC_TRESHOLD_HIGH);
51 dis_elm.SetTendency(tendency);
52 dis_elm.SetSeriousnessLevel(level);
56 override protected float GetObservedValue()
58 return m_Player.GetStatHeatComfort().Get();