UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TerrainDef Class Reference

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
 

Detailed Description

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.

See also
GEO_GetColor

Definition at line 355 of file q_shared.h.

Constructor & Destructor Documentation

TerrainDef::TerrainDef ( )
inline

Definition at line 366 of file q_shared.h.

TerrainDef::TerrainDef ( byte  _rgbRed,
byte  _rgbGreen,
byte  _rgbBlue,
const char *  _terrainName,
float  _survivalChance,
float  _rainChance,
float  _snowChance 
)
inline

Definition at line 369 of file q_shared.h.

Field Documentation

float TerrainDef::rainChance

Definition at line 363 of file q_shared.h.

Referenced by Com_ParseTerrainDefinition(), and TerrainDefs::getRainChance().

byte TerrainDef::rgbBlue
byte TerrainDef::rgbGreen
byte TerrainDef::rgbRed
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]

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