#include <containerbasetype.h>
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 |
Definition at line 140 of file containerbasetype.h.
| anonymous enum |
| 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.
| 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().
const int ContainerBaseType::TransportationIO::entranceModeNum = 3 [static] |
Definition at line 145 of file containerbasetype.h.
Referenced by read(), runTextIO(), TransportationIO(), and write().
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().
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().
the container must be on this height
Definition at line 156 of file containerbasetype.h.
Referenced by read(), runTextIO(), TransportationIO(), and write().
bitmapped: vehicle categories that may enter the container
Definition at line 159 of file containerbasetype.h.
Referenced by read(), runTextIO(), TransportationIO(), and write().
Definition at line 161 of file containerbasetype.h.
Referenced by read(), runTextIO(), TransportationIO(), and write().
Definition at line 163 of file containerbasetype.h.
Referenced by read(), runTextIO(), TransportationIO(), and write().
| std::bitset<64> ContainerBaseType::TransportationIO::requiresUnitFeature |
Definition at line 167 of file containerbasetype.h.
Referenced by calcMoveMalus(), read(), runTextIO(), TransportationIO(), and write().
Definition at line 169 of file containerbasetype.h.
Referenced by AStar3D::findPath(), read(), runTextIO(), TransportationIO(), and write().
1.5.1