UFO: Alien Invasion
|
Terrain property table entry Terrain is defined by the file map_earth_terrain.png in pics/geoscape. It is a map of the world where the different terrainTypes are drawn in different colors. The colors used in that map must have the exact RGB values as in the table, or they won't be recognized. More...
#include <q_shared.h>
Public Member Functions | |
TerrainDef () | |
TerrainDef (byte _rgbRed, byte _rgbGreen, byte _rgbBlue, const char *_terrainName, float _survivalChance, float _rainChance, float _snowChance) | |
Data Fields | |
byte | rgbRed |
byte | rgbGreen |
byte | rgbBlue |
char | terrainName [20] |
float | survivalChance |
float | rainChance |
float | snowChance |
Terrain property table entry Terrain is defined by the file map_earth_terrain.png in pics/geoscape. It is a map of the world where the different terrainTypes are drawn in different colors. The colors used in that map must have the exact RGB values as in the table, or they won't be recognized.
Definition at line 355 of file q_shared.h.
|
inline |
Definition at line 366 of file q_shared.h.
|
inline |
Definition at line 369 of file q_shared.h.
float TerrainDef::rainChance |
Definition at line 363 of file q_shared.h.
Referenced by Com_ParseTerrainDefinition(), and TerrainDefs::getRainChance().
byte TerrainDef::rgbBlue |
Definition at line 360 of file q_shared.h.
Referenced by TerrainDefs::add(), Com_ParseTerrainDefinition(), and TerrainDefs::findByColor().
byte TerrainDef::rgbGreen |
Definition at line 359 of file q_shared.h.
Referenced by TerrainDefs::add(), Com_ParseTerrainDefinition(), and TerrainDefs::findByColor().
byte TerrainDef::rgbRed |
Definition at line 358 of file q_shared.h.
Referenced by TerrainDefs::add(), Com_ParseTerrainDefinition(), and TerrainDefs::findByColor().
float TerrainDef::snowChance |
Definition at line 364 of file q_shared.h.
Referenced by Com_ParseTerrainDefinition(), and TerrainDefs::getSnowChance().
float TerrainDef::survivalChance |
Definition at line 362 of file q_shared.h.
Referenced by Com_ParseTerrainDefinition(), and TerrainDefs::getSurvivalChance().
char TerrainDef::terrainName[20] |
Definition at line 361 of file q_shared.h.
Referenced by TerrainDefs::add(), Com_ParseTerrainDefinition(), TerrainDefs::findByName(), and TerrainDefs::getTerrainName().