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


Detailed Description

Definition at line 140 of file containerbasetype.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
In 
Out 
Docking 

Definition at line 144 of file containerbasetype.h.


Constructor & Destructor Documentation

ContainerBaseType::TransportationIO::TransportationIO (  ) 

Definition at line 123 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::runTextIO ( PropertyContainer pc  ) 

Definition at line 137 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::read ( tnstream stream  ) 

Definition at line 369 of file containerbasetype.cpp.

References container_height, containerBaseTypeTransportVersion, VehicleType::convertOldFunctions(), disableAttack, dockingHeight_abs, dockingHeight_rel, tnstream::getLocation(), height_abs, height_rel, mode, movecost, tnstream::readBitset(), tnstream::readInt(), requiresUnitFeature, strrr(), and vehicleCategoriesLoadable.

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

Definition at line 398 of file containerbasetype.cpp.

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


Member Data Documentation

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

Definition at line 143 of file containerbasetype.h.

Referenced by runTextIO().

int ContainerBaseType::TransportationIO::mode

Definition at line 145 of file containerbasetype.h.

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

int ContainerBaseType::TransportationIO::height_abs

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

Definition at line 150 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 153 of file containerbasetype.h.

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

int ContainerBaseType::TransportationIO::container_height

the container must be on this height

Definition at line 156 of file containerbasetype.h.

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

int ContainerBaseType::TransportationIO::vehicleCategoriesLoadable

bitmapped: vehicle categories that may enter the container

Definition at line 159 of file containerbasetype.h.

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

int ContainerBaseType::TransportationIO::dockingHeight_abs

Definition at line 161 of file containerbasetype.h.

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

int ContainerBaseType::TransportationIO::dockingHeight_rel

Definition at line 163 of file containerbasetype.h.

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

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

Definition at line 165 of file containerbasetype.h.

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

int ContainerBaseType::TransportationIO::movecost

Definition at line 167 of file containerbasetype.h.

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

bool ContainerBaseType::TransportationIO::disableAttack

Definition at line 169 of file containerbasetype.h.

Referenced by AStar3D::findPath(), read(), runTextIO(), TransportationIO(), and write().


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