DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CalculateTendency()

int NotifierBase::CalculateTendency ( float delta,
float inctresholdlow,
float inctresholdmed,
float inctresholdhigh,
float dectresholdlow,
float dectresholdmed,
float dectresholdhigh )
inlineprotected

См. определение в файле NotifierBase.c строка 166

167 {
168 int tendency = TENDENCY_STABLE;
169 if (delta > inctresholdhigh)
170 tendency = TENDENCY_INC_HIGH;
171 else if (delta > inctresholdmed)
172 tendency = TENDENCY_INC_MED;
173 else if (delta > inctresholdlow)
174 tendency = TENDENCY_INC_LOW;
175 else if (delta < dectresholdhigh)
176 tendency = TENDENCY_DEC_HIGH;
177 else if (delta < dectresholdmed)
178 tendency = TENDENCY_DEC_MED;
179 else if (delta < dectresholdlow)
180 tendency = TENDENCY_DEC_LOW;
181
182 return tendency;
183 }
const int TENDENCY_INC_LOW
const int TENDENCY_DEC_HIGH
const int TENDENCY_DEC_MED
const int TENDENCY_INC_MED
const int TENDENCY_DEC_LOW
const int TENDENCY_INC_HIGH
const int TENDENCY_STABLE

Перекрестные ссылки TENDENCY_DEC_HIGH, TENDENCY_DEC_LOW, TENDENCY_DEC_MED, TENDENCY_INC_HIGH, TENDENCY_INC_LOW, TENDENCY_INC_MED и TENDENCY_STABLE.

Используется в BloodNotfr::DisplayTendency(), HealthNotfr::DisplayTendency(), HungerNotfr::DisplayTendency(), ThirstNotfr::DisplayTendency() и WarmthNotfr::DisplayTendency().