DayZ 1.27
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 строка 149

150 {
151 int tendency = TENDENCY_STABLE;
152 if (delta > inctresholdlow)
153 tendency = TENDENCY_INC_LOW;
154 if (delta > inctresholdmed)
155 tendency = TENDENCY_INC_MED;
156 if (delta > inctresholdhigh)
157 tendency = TENDENCY_INC_HIGH;
158 if (delta < dectresholdlow)
159 tendency = TENDENCY_DEC_LOW;
160 if (delta < dectresholdmed)
161 tendency = TENDENCY_DEC_MED;
162 if (delta < dectresholdhigh)
163 tendency = TENDENCY_DEC_HIGH;
164
165 return tendency;
166 }
const int TENDENCY_INC_LOW
Определения _constants.c:53
const int TENDENCY_DEC_HIGH
Определения _constants.c:58
const int TENDENCY_DEC_MED
Определения _constants.c:57
const int TENDENCY_INC_MED
Определения _constants.c:54
const int TENDENCY_DEC_LOW
Определения _constants.c:56
const int TENDENCY_INC_HIGH
Определения _constants.c:55
const int TENDENCY_STABLE
Определения _constants.c:52

Перекрестные ссылки 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().