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

ContainerBaseType::TransportationIO Class Reference

#include <containerbasetype.h>

List of all members.

Public Types

enum  { In = 1, Out = 2, Docking = 4 }

Public Member Functions

 TransportationIO ()
void runTextIO (PropertyContainer &pc)
void read (tnstream &stream)
void write (tnstream &stream) const

Public Attributes

int mode
int height_abs
 a loadable unit must be on this level of height; 0 if not used
int height_rel
 a height of a loadable unit have this height relative to the container; -100 if not used
int container_height
 the container must be on this height
int vehicleCategoriesLoadable
 bitmapped: vehicle categories that may enter the container
int dockingHeight_abs
int dockingHeight_rel
std::bitset< 64 > requiresUnitFeature
int movecost
bool disableAttack

Static Public Attributes

static const int entranceModeNum = 3


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
In 
Out 
Docking 

Definition at line 137 of file containerbasetype.h.


Constructor & Destructor Documentation

ContainerBaseType::TransportationIO::TransportationIO  ) 
 

Definition at line 121 of file containerbasetype.cpp.

References container_height, disableAttack, dockingHeight_abs, dockingHeight_rel, height_abs, height_rel, mode, movecost, and vehicleCategoriesLoadable.


Member Function Documentation

void ContainerBaseType::TransportationIO::read tnstream stream  ) 
 

Definition at line 327 of file containerbasetype.cpp.

References container_height, Vehicletype::convertOldFunctions(), disableAttack, dockingHeight_abs, dockingHeight_rel, height_abs, height_rel, mode, movecost, requiresUnitFeature, strrr(), and vehicleCategoriesLoadable.

void ContainerBaseType::TransportationIO::runTextIO PropertyContainer pc  ) 
 

Definition at line 135 of file containerbasetype.cpp.

References PropertyContainer::addBool(), PropertyContainer::addInteger(), PropertyContainer::addTagArray(), PropertyContainer::addTagInteger(), choehenstufennum, cmovemalitypenum, container_height, containerFunctionTags, Vehicletype::convertOldFunctions(), disableAttack, dockingHeight_abs, dockingHeight_rel, entranceModeNum, entranceModes, fatalError(), PropertyContainer::find(), ContainerBaseType::functionNum, PropertyContainer::getFileName(), height_abs, height_rel, heightTags, PropertyContainer::isReading(), Vehicletype::legacyVehicleFunctionNum, mode, movecost, requiresUnitFeature, unitCategoryTags, vehicleAbilities, and vehicleCategoriesLoadable.

void ContainerBaseType::TransportationIO::write tnstream stream  )  const
 

Definition at line 356 of file containerbasetype.cpp.

References container_height, disableAttack, dockingHeight_abs, dockingHeight_rel, height_abs, height_rel, mode, movecost, requiresUnitFeature, vehicleCategoriesLoadable, tnstream::writeBitset(), and tnstream::writeInt().


Member Data Documentation

int ContainerBaseType::TransportationIO::container_height
 

the container must be on this height

Definition at line 149 of file containerbasetype.h.

Referenced by read(), runTextIO(), TransportationIO(), and write().

bool ContainerBaseType::TransportationIO::disableAttack
 

Definition at line 162 of file containerbasetype.h.

Referenced by read(), runTextIO(), TransportationIO(), and write().

int ContainerBaseType::TransportationIO::dockingHeight_abs
 

Definition at line 154 of file containerbasetype.h.

Referenced by read(), runTextIO(), TransportationIO(), and write().

int ContainerBaseType::TransportationIO::dockingHeight_rel
 

Definition at line 156 of file containerbasetype.h.

Referenced by read(), runTextIO(), TransportationIO(), and write().

const int ContainerBaseType::TransportationIO::entranceModeNum = 3 [static]
 

Definition at line 136 of file containerbasetype.h.

Referenced by runTextIO().

int ContainerBaseType::TransportationIO::height_abs
 

a loadable unit must be on this level of height; 0 if not used

Definition at line 143 of file containerbasetype.h.

Referenced by read(), runTextIO(), TransportationIO(), and write().

int ContainerBaseType::TransportationIO::height_rel
 

a height of a loadable unit have this height relative to the container; -100 if not used

Definition at line 146 of file containerbasetype.h.

Referenced by read(), runTextIO(), TransportationIO(), and write().

int ContainerBaseType::TransportationIO::mode
 

Definition at line 138 of file containerbasetype.h.

Referenced by read(), runTextIO(), TransportationIO(), and write().

int ContainerBaseType::TransportationIO::movecost
 

Definition at line 160 of file containerbasetype.h.

Referenced by read(), runTextIO(), TransportationIO(), and write().

std::bitset<64> ContainerBaseType::TransportationIO::requiresUnitFeature
 

Definition at line 158 of file containerbasetype.h.

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

int ContainerBaseType::TransportationIO::vehicleCategoriesLoadable
 

bitmapped: vehicle categories that may enter the container

Definition at line 152 of file containerbasetype.h.

Referenced by read(), runTextIO(), TransportationIO(), and write().


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