#include <vehicletype.h>
Inheritance diagram for Vehicletype:

Public Member Functions | |
| ASCString | getName () const |
| int | maxsize (void) const |
| returns the maximum weight of this unit without fuel and material | |
| int | maxSpeed () const |
| Vehicletype (void) | |
| void | read (tnstream &stream) |
| void | write (tnstream &stream) const |
| void | runTextIO (PropertyContainer &pc) |
| ~Vehicletype () | |
| Resources | calcProductionsCost () |
| int | getMoveMalusType () const |
| void | paint (Surface &s, SPoint pos, const PlayerColor &player, int direction=0) const |
| void | paint (Surface &s, SPoint pos) const |
| const Surface & | getImage () const |
| Surface & | getImage () |
| int | getMemoryFootprint () const |
Static Public Member Functions | |
| static BitSet | convertOldFunctions (int abilities, const ASCString &location) |
Public Attributes | |
| ASCString | description |
| short description of the units role, for example "strategic bomber" | |
| int | armor |
| int | height |
| the levels of height which this unit can enter | |
| double | cargoMovementDivisor |
| if a transport moves the movement for the units inside a transport is decreased by 1/n of the tranport's distance | |
| bool | wait |
| If the unit cannot attack in the same turn after it has moved, it has to wait. | |
| int | fuelConsumption |
| the fuel consumption to move a single field | |
| vector< int > | movement |
| the distance a unit can travel each round. One value for each of the 8 levels of height | |
| int | movemalustyp |
| The category of the unit. Original used only to distinguish only between different movement costs for a field, this categorization is now used for many more things. | |
| int | maxwindspeedonwater |
| the maximum speed of the wind that the unit can survive when on open water without sinking | |
| int | digrange |
| radius of the circle in which a unit can search for mineral resolures (measured in number of fields, not distance !) | |
| int | initiative |
| unused | |
| int | weight |
| the weight of the unit, without fuel or other cargo | |
| TerrainAccess | terrainaccess |
| the terrain this unit can move to | |
| int | bipicture |
| the image index from the GraphicSet , or -1 if no graphics from graphic sets are used. | |
| vector< IntRange > | buildingsBuildable |
| the ids of buildings this unit can construct | |
| vector< IntRange > | vehiclesBuildable |
| the ids of units this unit can construct | |
| vector< IntRange > | objectsBuildable |
| the ids of objects this unit can construct | |
| vector< IntRange > | objectsRemovable |
| the ids of objects this unit can remove | |
| vector< IntRange > | objectGroupsBuildable |
| the group-ids of objects this unit can construct | |
| vector< IntRange > | objectGroupsRemovable |
| the group-ids of objects this unit can remove | |
| vector< IntRange > | objectLayedByMovement |
| the IDs of objects that are automatically layed by moving the movement | |
| UnitWeapon | weapons |
| The weapons. | |
| int | autorepairrate |
| the damage this unit can repair itself automatically each turn. | |
| int | unitConstructionMoveCostPercentage |
| if this unit constructs another unit externally (for example a turrt), it costs this much movement points | |
| vector< int > | wreckageObject |
| if the unit is destroyed, it can leave an wreckage object behind ( < 0 to disable ) | |
| AiValue * | aiparam [8] |
| some information the AI stores about this unit | |
| AiParameter::Job | recommendedAIJob |
| the recommended task for the unit, set by the unit creater | |
| ASCString | movementSoundLabel |
| this label can select a special sound to be played when moving | |
| ASCString | killSoundLabel |
| this label can select a special sound to be played when this unit is killed | |
| vector< int > | guideSortHelp |
| int | heightChangeMethodNum |
| vector< HeightChangeMethod > | heightChangeMethod |
| Vehicletype::JumpDrive | jumpDrive |
Static Public Attributes | |
| static const int | legacyVehicleFunctionNum = 29 |
Classes | |
| class | HeightChangeMethod |
| struct | JumpDrive |
Definition at line 177 of file vehicletype.h.
|
|
Definition at line 99 of file vehicletype.cpp. References aiparam, armor, autorepairrate, bipicture, cargoMovementDivisor, digrange, fuelConsumption, height, heightChangeMethodNum, initiative, AiParameter::job_undefined, maxwindspeedonwater, movemalustyp, movement, ContainerBaseType::productionEfficiency, recommendedAIJob, unitConstructionMoveCostPercentage, wait, and weight. |
|
|
Definition at line 774 of file vehicletype.cpp. References aiparam. |
|
|
||||||||||||
|
|
Definition at line 319 of file vehicletype.h. |
|
|
Definition at line 318 of file vehicletype.h. Referenced by GuiFunctions::VehicleBuildingGui::getImage(), paint(), and Vehicle::paint(). |
|
|
Implements MemorySizeQueryInterface. Definition at line 768 of file vehicletype.cpp. References Surface::getMemoryFootprint(). |
|
|
Implements ContainerBaseType. Definition at line 301 of file vehicletype.h. References movemalustyp. |
|
|
Reimplemented from ContainerBaseType. Definition at line 752 of file vehicletype.cpp. References description, and ContainerBaseType::name. Referenced by compareMapResources(), VehicleTypeBaseWidget::getName(), Vehicle::getName(), and UnitInfoDialog::UnitInfoDialog(). |
|
|
returns the maximum weight of this unit without fuel and material
Definition at line 142 of file vehicletype.cpp. References weight. |
|
|
Definition at line 760 of file vehicletype.cpp. |
|
||||||||||||
|
Definition at line 1201 of file vehicletype.cpp. References getImage(), and nullParam. |
|
||||||||||||||||||||
|
Definition at line 1196 of file vehicletype.cpp. References getImage(), and nullParam. Referenced by VehicleTypeBaseWidget::display(), VehicleItem::display(), TechWidget::display(), and DashboardPanel::painter(). |
|
|
|
|
|
some information the AI stores about this unit
Definition at line 261 of file vehicletype.h. Referenced by CalculateThreat_Vehicle::calc_threat_vehicle(), CalculateThreat_VehicleType::calc_threat_vehicletype(), Vehicletype(), and ~Vehicletype(). |
|
|
Definition at line 188 of file vehicletype.h. Referenced by CalculateThreat_VehicleType::calc_threat_vehicletype(), calcProductionsCost(), Vehicle::getArmor(), read(), runTextIO(), DashboardPanel::showUnitData(), UnitInfoDialog::UnitInfoDialog(), Vehicletype(), and write(). |
|
|
the damage this unit can repair itself automatically each turn.
Definition at line 252 of file vehicletype.h. Referenced by calcProductionsCost(), Vehicle::canRepair(), Vehicle::endOwnTurn(), read(), runTextIO(), Vehicletype(), and write(). |
|
|
the image index from the GraphicSet , or -1 if no graphics from graphic sets are used.
Definition at line 225 of file vehicletype.h. Referenced by read(), Vehicletype(), and write(). |
|
|
the ids of buildings this unit can construct
Definition at line 228 of file vehicletype.h. Referenced by GuiFunctions::DestructBuilding::available(), Vehicle::buildingconstructable(), read(), runTextIO(), and write(). |
|
|
if a transport moves the movement for the units inside a transport is decreased by 1/n of the tranport's distance
Definition at line 195 of file vehicletype.h. Referenced by read(), runTextIO(), Vehicle::setMovement(), Vehicletype(), and write(). |
|
|
short description of the units role, for example "strategic bomber"
Definition at line 184 of file vehicletype.h. Referenced by trunreplay::execnextreplaymove(), getName(), read(), UnitTypeTransformation::run(), runTextIO(), DashboardPanel::showUnitData(), VehicleTypeBaseWidget::VehicleTypeBaseWidget(), viewterraininfo(), viewUnitSetinfo(), and write(). |
|
|
radius of the circle in which a unit can search for mineral resolures (measured in number of fields, not distance !)
Definition at line 213 of file vehicletype.h. Referenced by calcProductionsCost(), read(), runTextIO(), Vehicletype(), and write(). |
|
|
the fuel consumption to move a single field
Definition at line 201 of file vehicletype.h. Referenced by GuiFunctions::DestructBuilding::available(), UnitHooveringLogic::calcFuelUsage(), getDestructionCost(), Vehicle::getMovement(), read(), runTextIO(), DashboardPanel::showUnitData(), UnitInfoDialog::UnitInfoDialog(), Vehicletype(), and write(). |
|
|
Definition at line 275 of file vehicletype.h. Referenced by read(), runTextIO(), and write(). |
|
|
the levels of height which this unit can enter
Definition at line 192 of file vehicletype.h. Referenced by AStar3D::AStar3D(), CalculateThreat_VehicleType::calc_threat_vehicletype(), calcProductionsCost(), VehicleService::FieldSearch::checkVehicle2Vehicle(), Vehicle::constructvehicle(), Vehicle::endOwnTurn(), fieldAccessible(), Vehicle::getHeightChange(), tunit::init(), BaseVehicleMovement::moveunitxy(), WeaponInfoLine::painter(), DashboardPanel::painter(), VehicleItem::place(), read(), runTextIO(), stu_height(), terrainaccessible2(), UnitInfoDialog::userHandler(), Vehicle::vehicleconstructable(), Vehicletype(), and write(). |
|
|
Definition at line 290 of file vehicletype.h. Referenced by Vehicle::getHeightChange(), read(), runTextIO(), UnitInfoDialog::userHandler(), and write(). |
|
|
Definition at line 277 of file vehicletype.h. Referenced by read(), runTextIO(), Vehicletype(), and write(). |
|
|
unused
Definition at line 216 of file vehicletype.h. Referenced by read(), tmineattacksunit::setup(), tunitattacksbuilding::setup(), tunitattacksunit::setup(), Vehicletype(), and write(). |
|
|
Referenced by JumpDrive::available(), JumpDrive::fieldReachable(), JumpDrive::jump(), read(), runTextIO(), and write(). |
|
|
this label can select a special sound to be played when this unit is killed
Definition at line 273 of file vehicletype.h. Referenced by SelfDestruct::destruct(), read(), runTextIO(), and write(). |
|
|
Definition at line 181 of file vehicletype.h. Referenced by runTextIO(), and ContainerBaseType::TransportationIO::runTextIO(). |
|
|
the maximum speed of the wind that the unit can survive when on open water without sinking
Definition at line 210 of file vehicletype.h. Referenced by read(), runTextIO(), UnitInfoDialog::UnitInfoDialog(), Vehicletype(), and write(). |
|
|
The category of the unit. Original used only to distinguish only between different movement costs for a field, this categorization is now used for many more things.
Definition at line 207 of file vehicletype.h. Referenced by attackpossible28(), attackpossible2n(), attackpossible2u(), Mine::attacksunit(), calcProductionsCost(), AStar::getDistance(), tfield::getmovemalus(), getMoveMalusType(), read(), runTextIO(), tmineattacksunit::setup(), tunitattacksunit::setup(), showUnitEndurance(), UnitInfoDialog::UnitInfoDialog(), vehicleComp(), Vehicletype(), ContainerBase::vehicleUnloadSystem(), viewterraininfo(), and write(). |
|
|
the distance a unit can travel each round. One value for each of the 8 levels of height
Definition at line 204 of file vehicletype.h. Referenced by AStar3D::AStar3D(), tunit::buttonpressed(), calcProductionsCost(), Vehicle::decreaseMovement(), Vehicle::endOwnTurn(), AStar3D::getMoveCost(), AStar::getTravelTime(), Vehicle::hasMoved(), Vehicle::maxMovement(), maxSpeed(), read(), Vehicle::resetMovement(), runTextIO(), Vehicle::setMovement(), stu_height(), UnitInfoDialog::UnitInfoDialog(), Vehicletype(), WindMovement::WindMovement(), and write(). |
|
|
this label can select a special sound to be played when moving
Definition at line 270 of file vehicletype.h. Referenced by read(), runTextIO(), and write(). |
|
|
the group-ids of objects this unit can construct
Definition at line 240 of file vehicletype.h. Referenced by GuiFunctions::BuildObject::available(), calcProductionsCost(), read(), runTextIO(), GuiFunctions::ObjectBuildingGui::search(), and write(). |
|
|
the group-ids of objects this unit can remove
Definition at line 243 of file vehicletype.h. Referenced by GuiFunctions::BuildObject::available(), read(), runTextIO(), GuiFunctions::ObjectBuildingGui::search(), and write(). |
|
|
the IDs of objects that are automatically layed by moving the movement
Definition at line 246 of file vehicletype.h. Referenced by read(), runTextIO(), Vehicle::spawnMoveObjects(), and write(). |
|
|
the ids of objects this unit can construct
Definition at line 234 of file vehicletype.h. Referenced by GuiFunctions::BuildObject::available(), calcProductionsCost(), read(), runTextIO(), GuiFunctions::ObjectBuildingGui::search(), and write(). |
|
|
the ids of objects this unit can remove
Definition at line 237 of file vehicletype.h. Referenced by GuiFunctions::BuildObject::available(), read(), runTextIO(), GuiFunctions::ObjectBuildingGui::search(), and write(). |
|
|
the recommended task for the unit, set by the unit creater
Definition at line 264 of file vehicletype.h. Referenced by runTextIO(), and Vehicletype(). |
|
|
the terrain this unit can move to
Definition at line 222 of file vehicletype.h. Referenced by checkunitsforremoval(), VehicleItem::place(), read(), runTextIO(), stu_height(), terrainaccessible2(), UnitInfoDialog::userHandler(), Vehicle::vehicleconstructable(), viewterraininfo(), and write(). |
|
|
if this unit constructs another unit externally (for example a turrt), it costs this much movement points
Definition at line 255 of file vehicletype.h. Referenced by Vehicle::constructvehicle(), read(), runTextIO(), Vehicle::vehicleconstructable(), Vehicletype(), and write(). |
|
|
the ids of units this unit can construct
Definition at line 231 of file vehicletype.h. Referenced by GuiFunctions::BuildVehicle::available(), read(), runTextIO(), GuiFunctions::VehicleBuildingGui::search(), and write(). |
|
|
If the unit cannot attack in the same turn after it has moved, it has to wait.
Definition at line 198 of file vehicletype.h. Referenced by attackpossible2n(), Vehicle::ReactionFire::enable(), GuiFunctions::ConstructBuilding::execute(), tsearchdestructbuildingfields::initdestructbuilding(), read(), runTextIO(), UnitInfoDialog::UnitInfoDialog(), Vehicletype(), WeaponInfoPanel::WeaponInfoPanel(), and write(). |
|
|
|
the weight of the unit, without fuel or other cargo
Definition at line 219 of file vehicletype.h. Referenced by execuseraction2(), maxsize(), read(), runTextIO(), Vehicle::size(), UnitInfoDialog::UnitInfoDialog(), Vehicletype(), Vehicle::weight(), and write(). |
|
|
if the unit is destroyed, it can leave an wreckage object behind ( < 0 to disable )
Definition at line 258 of file vehicletype.h. Referenced by read(), runTextIO(), write(), and Vehicle::~Vehicle(). |
1.4.2