UFO: Alien Invasion
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>

Collaboration diagram for TerrainDef:
Collaboration graph

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() [1/2]

TerrainDef::TerrainDef ( )
inline

Definition at line 366 of file q_shared.h.

References terrainName.

◆ TerrainDef() [2/2]

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.

References rainChance, rgbBlue, rgbGreen, rgbRed, snowChance, survivalChance, and terrainName.

Field Documentation

◆ rainChance

float TerrainDef::rainChance

Definition at line 363 of file q_shared.h.

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

◆ rgbBlue

byte TerrainDef::rgbBlue

◆ rgbGreen

byte TerrainDef::rgbGreen

◆ rgbRed

byte TerrainDef::rgbRed

◆ snowChance

float TerrainDef::snowChance

Definition at line 364 of file q_shared.h.

Referenced by Com_ParseTerrainDefinition(), TerrainDefs::getSnowChance(), and TerrainDef().

◆ survivalChance

float TerrainDef::survivalChance

◆ terrainName

char TerrainDef::terrainName[20]

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