<?phpnamespace App\Revisited\Sim;/** What the body lives in, given by Land\Game at each tick. */final class Environment{ public float $airTemp = 20.0; // °C public bool $nearFire = false; public bool $sheltered = false; public bool $wet = false; public float $effort = 0.0; // 0 rest, 0.3 walk, 1 run / fight /** 0..1.5: the muscles' work (carrying a heavy bag, climbing, fighting): trains Body's force */ public float $strain = 0.0; public bool $sleeping = false; /** Warmth of the worn clothes in degrees (Inventory::warmth()); counts less when the air is hot. */ public float $clothing = 0.0; /** @var array<string, float> degrees of clothing warmth per region (Inventory::regionWarmth()): head, hands, feet... */ public array $regions = []; /** 0..1: how wet the clothes are (Inventory::$wet) */ public float $wetness = 0.0; /** resting (sitting, awake): fatigue comes back a little, breath fully */ public bool $resting = false; /** sleeping: how good the bed is (Game::sleepComfort(): bare ground 0.75 .. a hut by the fire 1.15) */ public float $comfort = 1.0; /** the survival talents (Talents): hunger and thirst come slower (times these), the cold is felt less (degrees) */ public float $hungerMul = 1.0; public float $thirstMul = 1.0; public float $coldResist = 0.0;}