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


Detailed Description

Definition at line 58 of file objecttype.h.


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 1086 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_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 62 of file objecttype.h.

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

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 65 of file objecttype.h.

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

TerrainAccess ObjectType::FieldModification::terrainaccess

The terrain on which this object can be placed.

Definition at line 68 of file objecttype.h.

Referenced by runTextIO().

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 71 of file objecttype.h.

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

TerrainBits ObjectType::FieldModification::terrain_or

Definition at line 72 of file objecttype.h.

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


The documentation for this struct was generated from the following files:
Generated on Mon May 21 01:47:10 2012 for Advanced Strategic Command by  doxygen 1.5.1