terraintype.h File Reference

#include "graphics/surface.h"
#include "typen.h"
#include "mapitemtype.h"

Include dependency graph for terraintype.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TerrainBits
 the properties of a terrain describing which units can move onto this field and which can't More...
class  TerrainAccess
 This class is used by buildings, vehicles and objects to specify which terrain it can move to / be built on. More...
class  TerrainType
 The type of a field. More...
class  TerrainType::MoveMalus
class  TerrainType::Weather

Typedefs

typedef TerrainTypepterraintype

Enumerations

enum  TerrainBitTypes {
  cbwater0, cbwater1, cbwater2, cbwater3,
  cbwater, cbstreet, cbrailroad, cbbuildingentry,
  cbharbour, cbrunway, cbpipeline, cbpowerline,
  cbfahrspur, cbfestland, cbsnow1, cbsnow2,
  cbhillside, cbsmallrocks, cblargerocks, cbfrozenwater,
  cbicebreaking, cbriver
}

Functions

TerrainBits getTerrainBitType (TerrainBitTypes tbt)

Variables

const int terrainPropertyNum = 38
 the number of bits that specify the terrain of a field
const char * terrainProperty []


Typedef Documentation

typedef class TerrainType* pterraintype

Definition at line 72 of file terraintype.h.


Enumeration Type Documentation

enum TerrainBitTypes

Enumerator:
cbwater0 
cbwater1 
cbwater2 
cbwater3 
cbwater 
cbstreet 
cbrailroad 
cbbuildingentry 
cbharbour 
cbrunway 
cbpipeline 
cbpowerline 
cbfahrspur 
cbfestland 
cbsnow1 
cbsnow2 
cbhillside 
cbsmallrocks 
cblargerocks 
cbfrozenwater 
cbicebreaking 
cbriver 

Definition at line 153 of file terraintype.h.


Function Documentation

TerrainBits getTerrainBitType ( TerrainBitTypes  tbt  ) 

Definition at line 544 of file terraintype.cpp.

References cbbuildingentry, cbfahrspur, cbfestland, cbfrozenwater, cbharbour, cbhillside, cbicebreaking, cblargerocks, cbpipeline, cbpowerline, cbrailroad, cbriver, cbrunway, cbsmallrocks, cbsnow1, cbsnow2, cbstreet, cbwater, cbwater0, cbwater1, cbwater2, cbwater3, getTerrainBitType(), and TerrainBits::setInt().

Referenced by ConstructBuildingCommand::buildingFits(), calculateobject(), Building::chainbuildingtofield(), tmapgenerator::checkland(), fieldAccessible(), ResourceNet::fieldavail(), AStar3D::findPath(), MapField::getBuildingEntrance(), getmaxwindspeedforunit(), getTerrainBitType(), tspfldloaders::readfields(), UnitTypeTransformation::run(), MapField::setparams(), terrainaccessible2(), transformMap(), Building::unchainbuildingfromfield(), VehicleCounterFactory::VehicleCounterFactory(), tspfldloaders::writefields(), and GameMap::~GameMap().


Variable Documentation

const char* terrainProperty[]

Definition at line 30 of file terraintype.cpp.

Referenced by appendTerrainBits(), TerrainBits::appendToString(), DataTab::setData(), and showbdtbits().

const int terrainPropertyNum = 38

the number of bits that specify the terrain of a field

Definition at line 28 of file terraintype.h.

Referenced by appendTerrainBits(), TerrainBits::appendToString(), DataTab::DataTab(), TerrainType::Weather::runTextIO(), TerrainAccess::runTextIO(), ObjectType::FieldModification::runTextIO(), DataTab::setData(), and showbdtbits().


Generated on Mon May 21 01:44:05 2012 for Advanced Strategic Command by  doxygen 1.5.1