DayZ 1.30
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 строка 163

164 {
165 int tendency = TENDENCY_STABLE;
166 if (delta > inctresholdhigh)
167 tendency = TENDENCY_INC_HIGH;
168 else if (delta > inctresholdmed)
169 tendency = TENDENCY_INC_MED;
170 else if (delta > inctresholdlow)
171 tendency = TENDENCY_INC_LOW;
172 else if (delta < dectresholdhigh)
173 tendency = TENDENCY_DEC_HIGH;
174 else if (delta < dectresholdmed)
175 tendency = TENDENCY_DEC_MED;
176 else if (delta < dectresholdlow)
177 tendency = TENDENCY_DEC_LOW;
178
179 return tendency;
180 }
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().