#include <containerbasetype.h>
Inheritance diagram for ContainerBaseType:

Public Types | |
| typedef vector< TransportationIO > | EntranceSystems |
| enum | ContainerFunctions { TrainingCenter, InternalVehicleProduction, AmmoProduction, InternalUnitRepair, RecycleUnits, Research, Sonar, SatelliteView, MineView, WindPowerPlant, SolarPowerPlant, MatterConverter, MiningStation, ProduceNonLeavableUnits, ResourceSink, ExternalEnergyTransfer, ExternalMaterialTransfer, ExternalFuelTransfer, ExternalAmmoTransfer, ExternalRepair, NoObjectChaining, SelfDestructOnConquer, Paratrooper, PlaceMines, CruiserLanding, ConquerBuildings, MoveAfterAttack, ExternalVehicleProduction, ConstructBuildings, IceBreaker, NoInairRefuelling, MakesTracks, DetectsMineralResources, NoReactionfire, AutoRepair, KamikazeOnly, ImmuneToMines, JamsOnlyOwnField, MoveWithReactionFire, OnlyMoveToAndFromTransports, AutoHarvestObjects, NoProductionCustomization, ManualSelfDestruct } |
Public Member Functions | |
| ContainerBaseType () | |
| bool | hasFunction (ContainerFunctions function) const |
| bool | hasAnyFunction (std::bitset< 64 > functions) const |
| ASCString | getName () const |
| int | getID () const |
| virtual | ~ContainerBaseType () |
| void | runTextIO (PropertyContainer &pc) |
| bool | vehicleFit (const Vehicletype *type) const |
| can units of the given type be moved into this buildtype? This is a prerequisite - but not the only requirement - for a real unit to move into a real building | |
| void | read (tnstream &stream) |
| void | write (tnstream &stream) const |
| virtual int | getMoveMalusType () const =0 |
| Resources | getStorageCapacity (int mode) const |
| returns the Storage capacity of the unit | |
Static Public Member Functions | |
| static const char * | getFunctionName (ContainerFunctions function) |
Public Attributes | |
| int | id |
| vector< int > | secondaryIDs |
| when loading a file and these IDs are encountered, this object will be used. | |
| ASCString | name |
| a short name, for example B-52 | |
| ASCString | infotext |
| an extensive information about the unit/building which may be several paragraphs long | |
| int | jamming |
| the radar jamming power | |
| int | view |
| the visibility range | |
| Resources | productionCost |
| int | maxLoadableUnits |
| the maximum number of units that can be loaded | |
| int | maxLoadableUnitSize |
| the maximum size of a unit that may enter the building | |
| int | maxLoadableWeight |
| the maximum total weight of all loaded units | |
| int | vehicleCategoriesStorable |
| bitmapped: vehicle categories that can be stored the container | |
| int | vehicleCategoriesProduceable |
| bitmapped: vehicle categories that can be produced in the container | |
| vector< IntRange > | vehiclesInternallyProduceable |
| the default production capabilities of this container. | |
| EntranceSystems | entranceSystems |
| TechAdapterDependency | techDependency |
| ASCString | infoImageFilename |
| the filename of an image that is shown in info dialogs | |
| int | efficiencyfuel |
| currently only used by mining stations: the efficiency of the resource extraction from the ground. Base is 1024 | |
| int | efficiencymaterial |
| currently only used by mining stations: the efficiency of the resource extraction from the ground. Base is 1024 | |
| int | maxresearchpoints |
| the maximum number of research points a research center may produce | |
| int | defaultMaxResearchpoints |
| when a building of this type is placed on a map, its maxResearch property will be set to this value | |
| int | nominalresearchpoints |
| the number of reseach points for which the plus settings apllies | |
| Resources | maxplus |
| Resources | defaultProduction |
| if a new building is constructed, this will be the resource production of the building | |
| ResourceMatrix | productionEfficiency |
| struct { | |
| int range | |
| int maxFieldsPerTurn | |
| vector< IntRange > objectsHarvestable | |
| the ids of objects this unit can construct | |
| vector< IntRange > objectGroupsHarvestable | |
| the group-ids of objects this unit can construct | |
| } | autoHarvest |
Static Public Attributes | |
| static const int | functionNum = 43 |
Protected Member Functions | |
| void | setFunction (ContainerFunctions function) |
Protected Attributes | |
| std::bitset< 64 > | features |
| Resources | asc_mode_tank |
| Resources | bi_mode_tank |
Classes | |
| class | TransportationIO |
|
|
Definition at line 169 of file containerbasetype.h. |
|
|
Definition at line 33 of file containerbasetype.h. |
|
|
Definition at line 72 of file containerbasetype.cpp. References autoHarvest, defaultMaxResearchpoints, efficiencyfuel, efficiencymaterial, jamming, maxint, maxLoadableUnits, maxLoadableUnitSize, maxLoadableWeight, maxresearchpoints, nominalresearchpoints, vehicleCategoriesProduceable, vehicleCategoriesStorable, and view. |
|
|
Definition at line 112 of file containerbasetype.h. |
|
|
Definition at line 112 of file containerbasetype.cpp. References ccontainerfunctions, and functionNum. Referenced by UnitInfoDialog::UnitInfoDialog(). |
|
|
Implements MapItemType. Definition at line 98 of file containerbasetype.h. |
|
|
Implemented in BuildingType, and Vehicletype. |
|
|
Implements MapItemType. Reimplemented in Vehicletype. Definition at line 97 of file containerbasetype.h. References name. Referenced by BuildingItem::getName(), BuildingTypeBaseWidget::getName(), and getProductionString(). |
|
|
returns the Storage capacity of the unit
Definition at line 372 of file containerbasetype.cpp. References asc_mode_tank, and bi_mode_tank. Referenced by VehicleProduction_SelectionItemFactory::getCost(), ContainerBase::getStorageCapacity(), and UnitInfoDialog::UnitInfoDialog(). |
|
|
Referenced by ContainerBase::vehicleUnloadSystem(). |
|
|
|
Implements LoadableItemType. Reimplemented in BuildingType, and Vehicletype. Definition at line 260 of file containerbasetype.cpp. References autoHarvest, entranceSystems, features, infoImageFilename, maxLoadableUnits, maxLoadableUnitSize, maxLoadableWeight, productionEfficiency, ResourceMatrix::read(), tnstream::readBitset(), readClassContainer(), tnstream::readInt(), tnstream::readString(), secondaryIDs, strrr(), vehicleCategoriesProduceable, vehicleCategoriesStorable, and vehiclesInternallyProduceable. Referenced by Vehicletype::read(), and BuildingType::read(). |
|
|
|
Definition at line 104 of file containerbasetype.cpp. References features. Referenced by Vehicletype::read(), and Vehicletype::runTextIO(). |
|
|
can units of the given type be moved into this buildtype? This is a prerequisite - but not the only requirement - for a real unit to move into a real building
Definition at line 246 of file containerbasetype.cpp. References maxLoadableUnits, maxLoadableUnitSize, maxLoadableWeight, and vehicleCategoriesStorable. Referenced by evaluateProduction(), ProductionItemFactory::isFiltered(), CargoItemFactory::isFiltered(), ContainerControls::productionLinesBuyable(), ContainerBase::vehicleDocking(), ContainerBase::vehicleFit(), ContainerBase::vehicleUnloadable(), and ContainerBase::vehicleUnloadSystem(). |
|
|
Implements LoadableItemType. Reimplemented in BuildingType, and Vehicletype. Definition at line 300 of file containerbasetype.cpp. References autoHarvest, entranceSystems, features, infoImageFilename, maxLoadableUnits, maxLoadableUnitSize, maxLoadableWeight, productionEfficiency, secondaryIDs, vehicleCategoriesProduceable, vehicleCategoriesStorable, vehiclesInternallyProduceable, ResourceMatrix::write(), and writeClassContainer(). Referenced by Vehicletype::write(), and BuildingType::write(). |
|
|
Definition at line 214 of file containerbasetype.h. Referenced by getStorageCapacity(), Vehicletype::read(), BuildingType::read(), Vehicletype::runTextIO(), runTextIO(), Vehicletype::write(), and BuildingType::write(). |
|
|
Referenced by ContainerBaseType(), read(), AutoHarvestObjects::run(), runTextIO(), and write(). |
|
|
Definition at line 215 of file containerbasetype.h. Referenced by getStorageCapacity(), Vehicletype::read(), BuildingType::read(), Vehicletype::runTextIO(), runTextIO(), Vehicletype::write(), and BuildingType::write(). |
|
|
when a building of this type is placed on a map, its maxResearch property will be set to this value
Definition at line 197 of file containerbasetype.h. Referenced by ContainerBase::ContainerBase(), ContainerBaseType(), Vehicletype::read(), BuildingType::read(), runTextIO(), Vehicletype::write(), and BuildingType::write(). |
|
|
if a new building is constructed, this will be the resource production of the building
Definition at line 205 of file containerbasetype.h. Referenced by Building::Building(), putbuilding2(), Vehicletype::read(), BuildingType::read(), runTextIO(), Vehicletype::write(), and BuildingType::write(). |
|
|
currently only used by mining stations: the efficiency of the resource extraction from the ground. Base is 1024
Definition at line 188 of file containerbasetype.h. Referenced by ContainerBaseType(), BuildingValues::init(), Vehicletype::read(), BuildingType::read(), runTextIO(), Vehicletype::write(), and BuildingType::write(). |
|
|
currently only used by mining stations: the efficiency of the resource extraction from the ground. Base is 1024
Definition at line 191 of file containerbasetype.h. Referenced by ContainerBaseType(), BuildingValues::init(), Vehicletype::read(), BuildingType::read(), runTextIO(), Vehicletype::write(), and BuildingType::write(). |
|
|
Definition at line 170 of file containerbasetype.h. Referenced by Vehicletype::calcProductionsCost(), read(), runTextIO(), ContainerBase::vehicleDocking(), ContainerBase::vehicleLoadable(), ContainerBase::vehicleUnloadable(), ContainerBase::vehicleUnloadSystem(), and write(). |
|
|
Definition at line 29 of file containerbasetype.h. Referenced by Vehicletype::convertOldFunctions(), hasFunction(), Vehicletype::read(), read(), Vehicletype::runTextIO(), BuildingType::runTextIO(), setFunction(), and write(). |
|
|
Definition at line 78 of file containerbasetype.h. Referenced by getFunctionName(), Vehicletype::runTextIO(), ContainerBaseType::TransportationIO::runTextIO(), BuildingType::runTextIO(), and UnitInfoDialog::UnitInfoDialog(). |
|
|
|
the filename of an image that is shown in info dialogs
Definition at line 175 of file containerbasetype.h. Referenced by CargoDialog::CargoDialog(), read(), runTextIO(), UnitInfoDialog::UnitInfoDialog(), and write(). |
|
|
an extensive information about the unit/building which may be several paragraphs long
Definition at line 98 of file containerbasetype.h. Referenced by Vehicletype::read(), BuildingType::read(), runTextIO(), UnitInfoDialog::UnitInfoDialog(), Vehicletype::write(), and BuildingType::write(). |
|
|
the radar jamming power
Definition at line 105 of file containerbasetype.h. Referenced by Vehicletype::calcProductionsCost(), ContainerBaseType(), ReplayMapDisplay::displayMovingUnit(), tcomputebuildingview::init(), tcomputevehicleview::init(), Vehicletype::read(), BuildingType::read(), runTextIO(), UnitInfoDialog::UnitInfoDialog(), Vehicletype::write(), and BuildingType::write(). |
|
|
Definition at line 224 of file containerbasetype.h. |
|
|
the maximum number of units that can be loaded
Definition at line 112 of file containerbasetype.h. Referenced by CargoGuiFunctions::OpenContainer::available(), Vehicletype::calcProductionsCost(), cargoEditor(), ContainerBaseType(), read(), runTextIO(), StoringPosition::setup(), UnitInfoDialog::UnitInfoDialog(), ContainerConstControls::unitProductionAvailable(), vehicleFit(), ContainerBase::vehicleFit(), and write(). |
|
|
the maximum size of a unit that may enter the building
Definition at line 118 of file containerbasetype.h. Referenced by ContainerBaseType(), read(), runTextIO(), UnitInfoDialog::UnitInfoDialog(), vehicleFit(), and write(). |
|
|
the maximum total weight of all loaded units
Definition at line 121 of file containerbasetype.h. Referenced by ContainerBaseType(), read(), runTextIO(), UnitInfoDialog::UnitInfoDialog(), vehicleFit(), and write(). |
|
|
Definition at line 202 of file containerbasetype.h. Referenced by ContainerBase::ContainerBase(), BuildingValues::init(), Vehicletype::read(), BuildingType::read(), returnResourcenUseForResearch(), runTextIO(), Vehicletype::write(), and BuildingType::write(). |
|
|
the maximum number of research points a research center may produce
Definition at line 194 of file containerbasetype.h. Referenced by ContainerBaseType(), BuildingValues::init(), Vehicletype::read(), BuildingType::read(), runTextIO(), Vehicletype::write(), and BuildingType::write(). |
|
|
|
the number of reseach points for which the plus settings apllies
Definition at line 200 of file containerbasetype.h. Referenced by ResearchGraph::addSecondaryLab(), ContainerBase::ContainerBase(), ContainerBaseType(), Vehicletype::read(), BuildingType::read(), returnResourcenUseForResearch(), runTextIO(), ResearchGraph::setResearch(), Vehicletype::write(), and BuildingType::write(). |
|
|
the group-ids of objects this unit can construct
Definition at line 230 of file containerbasetype.h. |
|
|
the ids of objects this unit can construct
Definition at line 227 of file containerbasetype.h. |
|
|
|
Definition at line 219 of file containerbasetype.h. Referenced by BuildingType::BuildingType(), ContainerBase::getProductionCost(), read(), runTextIO(), Vehicletype::Vehicletype(), and write(). |
|
|
Definition at line 222 of file containerbasetype.h. |
|
|
when loading a file and these IDs are encountered, this object will be used.
Definition at line 91 of file containerbasetype.h. Referenced by read(), runTextIO(), and write(). |
|
|
Definition at line 172 of file containerbasetype.h. Referenced by trunreplay::execnextreplaymove(), getInstances(), Vehicletype::read(), BuildingType::read(), Vehicletype::runTextIO(), BuildingType::runTextIO(), Vehicle::vehicleconstructable(), Research::vehicletypeavailable(), Vehicletype::write(), and BuildingType::write(). |
|
|
bitmapped: vehicle categories that can be produced in the container
Definition at line 127 of file containerbasetype.h. Referenced by ContainerBaseType(), ProductionItemFactory::isFiltered(), ContainerControls::productionLinesBuyable(), read(), runTextIO(), and write(). |
|
|
bitmapped: vehicle categories that can be stored the container
Definition at line 124 of file containerbasetype.h. Referenced by ContainerBaseType(), read(), runTextIO(), CargoDialog::userHandler(), vehicleFit(), and write(). |
|
|
the default production capabilities of this container. Please be aware that a VehicleType has additional production for building units externally Definition at line 131 of file containerbasetype.h. Referenced by ContainerBase::ContainerBase(), read(), runTextIO(), and write(). |
|
|
the visibility range
Definition at line 108 of file containerbasetype.h. Referenced by Vehicletype::calcProductionsCost(), ContainerBaseType(), tcomputebuildingview::init(), tcomputevehicleview::init(), Vehicletype::read(), BuildingType::read(), Vehicletype::runTextIO(), runTextIO(), UnitInfoDialog::UnitInfoDialog(), Vehicletype::write(), and BuildingType::write(). |
1.4.2