#include <terraintype.h>
Inheritance diagram for TerrainType:

Public Member Functions | |
| int | getID () const |
| ASCString | getName () const |
| TerrainType () | |
| void | runTextIO (PropertyContainer &pc) |
| registers the properties of this item for loading/writing into asctxt files | |
| void | read (tnstream &stream) |
| read the binary representation of this item from the given stream | |
| void | write (tnstream &stream) const |
| write the binary representation of this item to the given stream | |
| 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 |
| Weather * | weather [cwettertypennum] |
Classes | |
| class | MoveMalus |
| class | Weather |
Definition at line 75 of file terraintype.h.
| TerrainType::TerrainType | ( | ) |
| TerrainType::~TerrainType | ( | ) |
| int TerrainType::getID | ( | ) | const [inline, virtual] |
| ASCString TerrainType::getName | ( | ) | const [inline, virtual] |
| void TerrainType::runTextIO | ( | PropertyContainer & | pc | ) | [virtual] |
registers the properties of this item for loading/writing into asctxt files
Implements LoadableItemType.
Definition at line 447 of file terraintype.cpp.
References PropertyContainer::addBreakpoint(), PropertyContainer::addInteger(), PropertyContainer::addIntegerArray(), PropertyContainer::addString(), PropertyContainer::addTagArray(), PropertyContainer::closeBracket(), cwettertypennum, PropertyContainer::find(), PropertyContainer::isReading(), name, PropertyContainer::openBracket(), TerrainType::Weather::runTextIO(), secondaryIDs, weather, and weatherTags.
| void TerrainType::read | ( | tnstream & | stream | ) | [virtual] |
read the binary representation of this item from the given stream
Implements LoadableItemType.
Definition at line 303 of file terraintype.cpp.
References cwettertypennum, tnstream::getDeviceName(), name, TerrainType::Weather::read(), readClassContainer(), tnstream::readInt(), tnstream::readString(), secondaryIDs, terrain_version, and weather.
| void TerrainType::write | ( | tnstream & | stream | ) | const [virtual] |
write the binary representation of this item to the given stream
Implements LoadableItemType.
Definition at line 335 of file terraintype.cpp.
References cwettertypennum, name, secondaryIDs, terrain_version, weather, writeClassContainer(), tnstream::writeInt(), and tnstream::writeString().
| int TerrainType::getMemoryFootprint | ( | ) | const |
| int TerrainType::id |
Definition at line 77 of file terraintype.h.
Referenced by calculateobject(), MapField::getmovemalus(), ItemFiltrationSystem::isFiltered(), TerrainType::Weather::runTextIO(), MapField::setparams(), viewterraininfo(), and tspfldloaders::writefields().
when loading a file and these IDs are encountered, this object will be used.
Definition at line 80 of file terraintype.h.
Referenced by read(), runTextIO(), and write().
Definition at line 82 of file terraintype.h.
Referenced by DashboardPanel::eval(), getName(), MapField::getName(), read(), runTextIO(), terrainComp(), and write().
Definition at line 140 of file terraintype.h.
Referenced by tmapgenerator::addcoast(), MapField::changeTerrainType(), TerrainItem::display(), MapChange::fieldOperator(), getMemoryFootprint(), MapField::getWeather(), TerrainItem::place(), placeTerrain(), read(), tspfldloaders::readfields(), GameMap::resize(), TerrainType::Weather::runTextIO(), runTextIO(), tmapgenerator::setpfield(), MapField::setWeather(), terrainComp(), TerrainType(), transformMap(), write(), tspfldloaders::writefields(), and ~TerrainType().
1.5.1