Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

TerrainType Class Reference

The type of a field. More...

#include <terraintype.h>

Inheritance diagram for TerrainType:

Inheritance graph
[legend]
List of all members.

Public Member Functions

int getID () const
ASCString getName () const
 TerrainType ()
void runTextIO (PropertyContainer &pc)
void read (tnstream &stream)
void write (tnstream &stream) const
int getMemoryFootprint () const
 ~TerrainType ()

Public Attributes

int id
vector< int > secondaryIDs
 when loading a file and these IDs are encountered, this object will be used.
ASCString name
Weatherweather [cwettertypennum]

Classes

class  MoveMalus
class  Weather

Detailed Description

The type of a field.

Definition at line 72 of file terraintype.h.


Constructor & Destructor Documentation

TerrainType::TerrainType  ) 
 

Definition at line 110 of file terraintype.cpp.

References cwettertypennum, and weather.

TerrainType::~TerrainType  ) 
 

Definition at line 363 of file terraintype.cpp.

References cwettertypennum, and weather.


Member Function Documentation

int TerrainType::getID  )  const [inline, virtual]
 

Implements MapItemType.

Definition at line 79 of file terraintype.h.

int TerrainType::getMemoryFootprint  )  const
 

Definition at line 342 of file terraintype.cpp.

References cwettertypennum, TerrainType::Weather::getMemoryFootprint(), and weather.

ASCString TerrainType::getName  )  const [inline, virtual]
 

Implements MapItemType.

Definition at line 81 of file terraintype.h.

References name.

void TerrainType::read tnstream stream  )  [virtual]
 

Implements LoadableItemType.

Definition at line 281 of file terraintype.cpp.

References cwettertypennum, name, TerrainType::Weather::read(), terrain_version, and weather.

void TerrainType::runTextIO PropertyContainer pc  )  [virtual]
 

Implements LoadableItemType.

Definition at line 427 of file terraintype.cpp.

References cwettertypennum, name, TerrainType::Weather::runTextIO(), secondaryIDs, weather, and weatherTags.

void TerrainType::write tnstream stream  )  const [virtual]
 

Implements LoadableItemType.

Definition at line 319 of file terraintype.cpp.

References cwettertypennum, name, terrain_version, weather, and TerrainType::Weather::write().


Member Data Documentation

int TerrainType::id
 

Definition at line 74 of file terraintype.h.

Referenced by tfield::getmovemalus(), ItemFiltrationSystem::isFiltered(), TerrainType::Weather::runTextIO(), tfield::setparams(), transformMap(), viewterraininfo(), and tspfldloaders::writefields().

ASCString TerrainType::name
 

Definition at line 79 of file terraintype.h.

Referenced by DashboardPanel::eval(), getName(), tfield::getName(), read(), runTextIO(), terrainComp(), and write().

vector<int> TerrainType::secondaryIDs
 

when loading a file and these IDs are encountered, this object will be used.

Definition at line 77 of file terraintype.h.

Referenced by runTextIO().

Weather* TerrainType::weather[cwettertypennum]
 

Definition at line 136 of file terraintype.h.

Referenced by tmapgenerator::addcoast(), TerrainItem::display(), MapChange::fieldOperator(), getMemoryFootprint(), SolarPowerplant::getPlus(), tfield::getweather(), TerrainItem::place(), read(), tspfldloaders::readfields(), TerrainType::Weather::runTextIO(), runTextIO(), tmapgenerator::setpfield(), tfield::setweather(), terrainComp(), TerrainType(), transformMap(), write(), tspfldloaders::writefields(), and ~TerrainType().


The documentation for this class was generated from the following files:
Generated on Wed May 14 01:50:18 2008 for Advanced Strategic Command by  doxygen 1.4.2