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

◆ RefreshFireState()

void RefreshFireState ( )
protected

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

1055 {
1056 float temperature = GetTemperature();
1057
1058 //if it's burning
1059 if (IsBurning())
1060 {
1061 //Start fire
1062 if (temperature <= PARAM_MIN_FIRE_TEMPERATURE)
1063 {
1064 if (GetFireState() != FireplaceFireState.START_FIRE)
1065 {
1066 SetFireState(FireplaceFireState.START_FIRE);
1067 }
1068 }
1069 //Small fire
1070 else if (temperature <= PARAM_SMALL_FIRE_TEMPERATURE)
1071 {
1072 if (GetFireState() != FireplaceFireState.SMALL_FIRE)
1073 {
1074 SetFireState(FireplaceFireState.SMALL_FIRE);
1075 }
1076 }
1077 //Normal fire
1078 else if (temperature > PARAM_SMALL_FIRE_TEMPERATURE)
1079 {
1080 if (GetFireState() != FireplaceFireState.NORMAL_FIRE)
1081 {
1082 SetFireState(FireplaceFireState.NORMAL_FIRE);
1083 }
1084 }
1085 }
1086 }
float GetTemperature()
Определения Environment.c:497
void SetFireState(FireplaceFireState state)
Определения FireplaceBase.c:1719
const float PARAM_MIN_FIRE_TEMPERATURE
maximum fireplace temperature of an outdoor fire (degree Celsius)
Определения FireplaceBase.c:44
const float PARAM_SMALL_FIRE_TEMPERATURE
Определения FireplaceBase.c:41
bool IsBurning()
Определения FireplaceBase.c:1621
int GetFireState()
Определения FireplaceBase.c:1713
FireplaceFireState
Определения FireplaceBase.c:2

Перекрестные ссылки GetFireState(), GetTemperature(), IsBurning(), PARAM_MIN_FIRE_TEMPERATURE, PARAM_SMALL_FIRE_TEMPERATURE и SetFireState().

Используется в Heating().