Crossfire Server, Trunk  1.75.0
weathermap_t Struct Reference

This is an overlay structure of the whole world. More...

+ Collaboration diagram for weathermap_t:

Data Fields

int32_t avgelev
 Average elevation. More...
 
uint8_t darkness
 Indicates level of darkness of map. More...
 
int8_t forestry
 Range of forestedness. More...
 
int8_t humid
 Humitidy of this tile. More...
 
int16_t pressure
 Barometric pressure (mb). More...
 
uint32_t rainfall
 Cumulative rainfall. More...
 
int16_t realtemp
 Temperature at a given calculation step for this tile. More...
 
int8_t sky
 Sky conditions. More...
 
int16_t temp
 Base temperature of this tile (F). More...
 
int8_t water
 -100 - 100 percentage of water tiles. More...
 
int8_t winddir
 Direction of wind. More...
 
int8_t windspeed
 Windspeed of this tile. More...
 

Detailed Description

This is an overlay structure of the whole world.

It exists as a simple high level map, which doesn't contain the full data of the underlying map. in this map, only things such as weather are recorded. By doing so, we can keep the entire world parameters in memory, and act as a whole on them at once. We can then, in a separate loop, update the actual world with the new values we have assigned.

Definition at line 94 of file cfweather.cpp.


The documentation for this struct was generated from the following file: