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

ObjectType::FieldModification Struct Reference

#include <objecttype.h>

List of all members.

Public Member Functions

 FieldModification ()
void runTextIO (PropertyContainer &pc)

Public Attributes

TerrainType::MoveMalus movemalus_plus
 the movemalus_plus is added to the current movemalus of the field to form the new movemalus. Negative values are ok.
TerrainType::MoveMalus movemalus_abs
 The movemalus_abs replaces the current movemalus of the field by a new one. Values of 0 and -1 won't affect the movemalus of the field, and values ranging from 1 to 9 must not be used.
TerrainAccess terrainaccess
 The terrain on which this object can be placed.
TerrainBits terrain_and
 the terrain properties of the field will be AND-masked with this field and then OR-masked with terrain_or to form the new terrain properties
TerrainBits terrain_or


Constructor & Destructor Documentation

ObjectType::FieldModification::FieldModification  ) 
 

Definition at line 42 of file objecttype.cpp.

References terrain_and.


Member Function Documentation

void ObjectType::FieldModification::runTextIO PropertyContainer pc  ) 
 

Definition at line 1078 of file objecttype.cpp.

References PropertyContainer::addDFloatArray(), PropertyContainer::addTagArray(), PropertyContainer::closeBracket(), cmovemalitypenum, movemalus_abs, movemalus_plus, PropertyContainer::openBracket(), TerrainAccess::runTextIO(), terrain_and, terrain_or, terrainaccess, terrainProperties, and terrainPropertyNum.

Referenced by ObjectType::runTextIO().


Member Data Documentation

TerrainType::MoveMalus ObjectType::FieldModification::movemalus_abs
 

The movemalus_abs replaces the current movemalus of the field by a new one. Values of 0 and -1 won't affect the movemalus of the field, and values ranging from 1 to 9 must not be used.

Definition at line 66 of file objecttype.h.

Referenced by ObjectType::read(), runTextIO(), and ObjectType::write().

TerrainType::MoveMalus ObjectType::FieldModification::movemalus_plus
 

the movemalus_plus is added to the current movemalus of the field to form the new movemalus. Negative values are ok.

Definition at line 63 of file objecttype.h.

Referenced by ObjectType::read(), runTextIO(), and ObjectType::write().

TerrainBits ObjectType::FieldModification::terrain_and
 

the terrain properties of the field will be AND-masked with this field and then OR-masked with terrain_or to form the new terrain properties

Definition at line 72 of file objecttype.h.

Referenced by FieldModification(), ObjectType::read(), runTextIO(), and ObjectType::write().

TerrainBits ObjectType::FieldModification::terrain_or
 

Definition at line 73 of file objecttype.h.

Referenced by PipeLayer::PipeLayer(), ObjectType::read(), runTextIO(), and ObjectType::write().

TerrainAccess ObjectType::FieldModification::terrainaccess
 

The terrain on which this object can be placed.

Definition at line 69 of file objecttype.h.

Referenced by ObjectType::buildable(), ObjectType::read(), runTextIO(), and ObjectType::write().


The documentation for this struct was generated from the following files:
Generated on Tue Jun 24 02:18:40 2008 for Advanced Strategic Command by  doxygen 1.4.2