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

Vehicletype Class Reference

The class describing properties that are common to all vehicles of a certain kind. More...

#include <vehicletype.h>

Inheritance diagram for Vehicletype:

Inheritance graph
[legend]
List of all members.

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 SurfacegetImage () const
SurfacegetImage ()
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< IntRangebuildingsBuildable
 the ids of buildings this unit can construct
vector< IntRangevehiclesBuildable
 the ids of units this unit can construct
vector< IntRangeobjectsBuildable
 the ids of objects this unit can construct
vector< IntRangeobjectsRemovable
 the ids of objects this unit can remove
vector< IntRangeobjectGroupsBuildable
 the group-ids of objects this unit can construct
vector< IntRangeobjectGroupsRemovable
 the group-ids of objects this unit can remove
vector< IntRangeobjectLayedByMovement
 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 )
AiValueaiparam [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< HeightChangeMethodheightChangeMethod
Vehicletype::JumpDrive jumpDrive

Static Public Attributes

static const int legacyVehicleFunctionNum = 29

Classes

class  HeightChangeMethod
struct  JumpDrive

Detailed Description

The class describing properties that are common to all vehicles of a certain kind.

See also:
Vehicle

Definition at line 177 of file vehicletype.h.


Constructor & Destructor Documentation

Vehicletype::Vehicletype void   ) 
 

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.

Vehicletype::~Vehicletype  ) 
 

Definition at line 774 of file vehicletype.cpp.

References aiparam.


Member Function Documentation

Resources Vehicletype::calcProductionsCost  ) 
 

Definition at line 1332 of file vehicletype.cpp.

References armor, ContainerBaseType::AutoRepair, autorepairrate, SingleWeapon::canRefuel(), chfliegend, chgetaucht, chhochfliegend, chsatellit, chtieffliegend, ContainerBaseType::ConstructBuildings, UnitWeapon::count, cwbombn, cwcannonn, cwcruisemissile, cwlargemissilen, cwlasern, cwmachinegunn, cwminen, cwsmallmissilen, cwtorpedon, ContainerBaseType::DetectsMineralResources, digrange, Resources::energy, ContainerBaseType::entranceSystems, ContainerBaseType::ExternalRepair, ContainerBaseType::ExternalVehicleProduction, Resources::fuel, SingleWeapon::getScalarWeaponType(), ContainerBaseType::hasFunction(), MoveMalusType::heavy_aircraft, MoveMalusType::heavy_ship, MoveMalusType::heavy_tracked_vehicle, MoveMalusType::heavy_wheeled_vehicle, height, MoveMalusType::helicopter, MoveMalusType::hoovercraft, ContainerBaseType::IceBreaker, ContainerBaseType::InternalUnitRepair, ContainerBaseType::InternalVehicleProduction, ContainerBaseType::jamming, ContainerBaseType::JamsOnlyOwnField, ContainerBaseType::KamikazeOnly, MoveMalusType::light_aircraft, MoveMalusType::light_ship, MoveMalusType::light_tracked_vehicle, MoveMalusType::light_wheeled_vehicle, Resources::material, SingleWeapon::maxdistance, ContainerBaseType::maxLoadableUnits, SingleWeapon::maxstrength, MoveMalusType::medium_aircraft, MoveMalusType::medium_ship, MoveMalusType::medium_tracked_vehicle, MoveMalusType::medium_wheeled_vehicle, ContainerBaseType::MoveAfterAttack, movemalustyp, movement, ContainerBaseType::MoveWithReactionFire, ContainerBaseType::NoInairRefuelling, objectGroupsBuildable, objectsBuildable, ContainerBaseType::Paratrooper, MoveMalusType::rail_vehicle, SingleWeapon::reactionFireShots, ContainerBaseType::SatelliteView, SingleWeapon::service(), SingleWeapon::shootable(), ContainerBaseType::Sonar, MoveMalusType::structure, T, MoveMalusType::trooper, ContainerBaseType::view, UnitWeapon::weapon, and weapons.

Referenced by runTextIO().

BitSet Vehicletype::convertOldFunctions int  abilities,
const ASCString location
[static]
 

Definition at line 1130 of file vehicletype.cpp.

References ContainerBaseType::AutoRepair, ContainerBaseType::ConquerBuildings, ContainerBaseType::ConstructBuildings, ContainerBaseType::CruiserLanding, ContainerBaseType::DetectsMineralResources, errorMessage(), ContainerBaseType::ExternalEnergyTransfer, ContainerBaseType::ExternalFuelTransfer, ContainerBaseType::ExternalMaterialTransfer, ContainerBaseType::ExternalRepair, ContainerBaseType::ExternalVehicleProduction, ContainerBaseType::features, ContainerBaseType::IceBreaker, ContainerBaseType::ImmuneToMines, ContainerBaseType::InternalUnitRepair, ContainerBaseType::JamsOnlyOwnField, ContainerBaseType::KamikazeOnly, ContainerBaseType::MakesTracks, ContainerBaseType::MineView, ContainerBaseType::MoveAfterAttack, ContainerBaseType::MoveWithReactionFire, ContainerBaseType::NoInairRefuelling, ContainerBaseType::NoReactionfire, ContainerBaseType::OnlyMoveToAndFromTransports, ContainerBaseType::Paratrooper, ContainerBaseType::PlaceMines, ContainerBaseType::SatelliteView, and ContainerBaseType::Sonar.

Referenced by read(), ContainerBaseType::TransportationIO::read(), runTextIO(), and ContainerBaseType::TransportationIO::runTextIO().

Surface& Vehicletype::getImage  )  [inline]
 

Definition at line 319 of file vehicletype.h.

const Surface& Vehicletype::getImage  )  const [inline]
 

Definition at line 318 of file vehicletype.h.

Referenced by GuiFunctions::VehicleBuildingGui::getImage(), paint(), and Vehicle::paint().

int Vehicletype::getMemoryFootprint  )  const [virtual]
 

Implements MemorySizeQueryInterface.

Definition at line 768 of file vehicletype.cpp.

References Surface::getMemoryFootprint().

int Vehicletype::getMoveMalusType  )  const [inline, virtual]
 

Implements ContainerBaseType.

Definition at line 301 of file vehicletype.h.

References movemalustyp.

ASCString Vehicletype::getName  )  const [virtual]
 

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().

int Vehicletype::maxsize void   )  const
 

returns the maximum weight of this unit without fuel and material

Definition at line 142 of file vehicletype.cpp.

References weight.

int Vehicletype::maxSpeed  )  const
 

Definition at line 760 of file vehicletype.cpp.

References max(), and movement.

void Vehicletype::paint Surface s,
SPoint  pos
const
 

Definition at line 1201 of file vehicletype.cpp.

References getImage(), and nullParam.

void Vehicletype::paint Surface s,
SPoint  pos,
const PlayerColor player,
int  direction = 0
const
 

Definition at line 1196 of file vehicletype.cpp.

References getImage(), and nullParam.

Referenced by VehicleTypeBaseWidget::display(), VehicleItem::display(), TechWidget::display(), and DashboardPanel::painter().

void Vehicletype::read tnstream stream  )  [virtual]
 

Reimplemented from ContainerBaseType.

Definition at line 166 of file vehicletype.cpp.

References armor, ContainerBaseType::asc_mode_tank, ContainerBaseType::AutoRepair, autorepairrate, ContainerBaseType::bi_mode_tank, bipicture, buildingsBuildable, SingleWeapon::canRefuel(), cargoMovementDivisor, cmovemalitypenum, Vehicletype::JumpDrive::consumption, convertOldFunctions(), SingleWeapon::count, UnitWeapon::count, ContainerBaseType::defaultMaxResearchpoints, ContainerBaseType::defaultProduction, description, digrange, SingleWeapon::efficiency, ContainerBaseType::efficiencyfuel, ContainerBaseType::efficiencymaterial, Resources::energy, ContainerBaseType::ExternalAmmoTransfer, ContainerBaseType::features, LoadableItemType::filename, fuelConsumption, guideSortHelp, ContainerBaseType::hasFunction(), Vehicletype::JumpDrive::height, height, heightChangeMethod, heightChangeMethodNum, ContainerBaseType::infotext, initiative, ContainerBaseType::jamming, jumpDrive, killSoundLabel, SingleWeapon::laserRechargeCost, SingleWeapon::laserRechargeRate, LoadableItemType::location, Resources::material, Vehicletype::JumpDrive::maxDistance, SingleWeapon::maxdistance, ContainerBaseType::maxplus, ContainerBaseType::maxresearchpoints, SingleWeapon::maxstrength, maxwindspeedonwater, SingleWeapon::mindistance, SingleWeapon::minstrength, movemalustyp, movement, movementSoundLabel, SingleWeapon::name, ContainerBaseType::name, ContainerBaseType::nominalresearchpoints, objectGroupsBuildable, objectGroupsRemovable, objectLayedByMovement, objectsBuildable, objectsRemovable, ContainerBaseType::productionCost, SingleWeapon::reactionFireShots, TechAdapterDependency::read(), ContainerBaseType::read(), TerrainAccess::read(), Surface::read(), Resources::read(), readClassContainer(), Resources::resource(), SingleWeapon::set(), ContainerBaseType::setFunction(), TerrainBits::setInt(), SingleWeapon::soundLabel, SingleWeapon::sourceheight, SingleWeapon::targ, SingleWeapon::targetingAccuracy, Vehicletype::JumpDrive::targetterrain, ContainerBaseType::techDependency, TerrainAccess::terrain, terrainaccess, TerrainAccess::terrainkill, TerrainAccess::terrainnot, TerrainAccess::terrainreq, unitConstructionMoveCostPercentage, vehicle_version, vehiclesBuildable, ContainerBaseType::view, wait, UnitWeapon::weapon, weapons, weight, and wreckageObject.

void Vehicletype::runTextIO PropertyContainer pc  )  [virtual]
 

Reimplemented from ContainerBaseType.

Definition at line 941 of file vehicletype.cpp.

References PropertyContainer::addBool(), PropertyContainer::addDFloat(), PropertyContainer::addImage(), PropertyContainer::addInteger(), PropertyContainer::addIntegerArray(), PropertyContainer::addNamedInteger(), PropertyContainer::addString(), PropertyContainer::addTagArray(), PropertyContainer::addTagInteger(), AIjobs, armor, ContainerBaseType::asc_mode_tank, Surface::assignDefaultPalette(), autorepairrate, ContainerBaseType::bi_mode_tank, buildingsBuildable, calcProductionsCost(), SingleWeapon::canRefuel(), cargoMovementDivisor, choehenstufennum, PropertyContainer::closeBracket(), cmovemalitypenum, Vehicletype::JumpDrive::consumption, containerFunctionTags, convertOldFunctions(), UnitWeapon::count, description, digrange, displayLogMessage(), Resources::energy, ContainerBaseType::ExternalAmmoTransfer, ContainerBaseType::ExternalEnergyTransfer, ContainerBaseType::ExternalFuelTransfer, ContainerBaseType::ExternalMaterialTransfer, ContainerBaseType::ExternalRepair, extractFileName_withoutSuffix(), ContainerBaseType::features, fieldsizex, fieldsizey, LoadableItemType::filename, PropertyContainer::find(), Resources::fuel, fuelConsumption, ContainerBaseType::functionNum, PropertyContainer::getFileName(), guideSortHelp, ContainerBaseType::hasFunction(), Vehicletype::JumpDrive::height, height, heightChangeMethod, heightChangeMethodNum, heightTags, ContainerBaseType::IceBreaker, ContainerBaseType::id, PropertyContainer::isReading(), AiParameter::job_undefined, AiParameter::jobNum, jumpDrive, killSoundLabel, legacyVehicleFunctionNum, ContainerBaseType::MakesTracks, Resources::material, Vehicletype::JumpDrive::maxDistance, maxint, maxwindspeedonwater, movemalustyp, movement, movementSoundLabel, ContainerBaseType::name, ContainerBaseType::NoReactionfire, objectGroupsBuildable, objectGroupsRemovable, objectLayedByMovement, objectsBuildable, objectsRemovable, PropertyContainer::openBracket(), ContainerBaseType::productionCost, productionCostCalculationMethod, productionCostCalculationMethodNum, SingleWeapon::reactionFireShots, recommendedAIJob, TechAdapterDependency::runTextIO(), SingleWeapon::runTextIO(), TerrainAccess::runTextIO(), Resources::runTextIO(), ContainerBaseType::runTextIO(), SingleWeapon::service(), ContainerBaseType::setFunction(), Surface::strech(), strrr(), Vehicletype::JumpDrive::targetterrain, ContainerBaseType::techDependency, terrainaccess, unitCategoryTags, unitConstructionMoveCostPercentage, vehicleAbilities, vehiclesBuildable, ContainerBaseType::view, wait, UnitWeapon::weapon, weapons, weight, and wreckageObject.

Referenced by execaction_pg().

void Vehicletype::write tnstream stream  )  const [virtual]
 

Reimplemented from ContainerBaseType.

Definition at line 579 of file vehicletype.cpp.

References armor, ContainerBaseType::asc_mode_tank, autorepairrate, ContainerBaseType::bi_mode_tank, bipicture, buildingsBuildable, cargoMovementDivisor, cmovemalitypenum, Vehicletype::JumpDrive::consumption, SingleWeapon::count, UnitWeapon::count, ContainerBaseType::defaultMaxResearchpoints, ContainerBaseType::defaultProduction, description, digrange, SingleWeapon::efficiency, ContainerBaseType::efficiencyfuel, ContainerBaseType::efficiencymaterial, fuelConsumption, SingleWeapon::gettype(), guideSortHelp, Vehicletype::JumpDrive::height, height, heightChangeMethod, heightChangeMethodNum, ContainerBaseType::infotext, initiative, ContainerBaseType::jamming, jumpDrive, killSoundLabel, SingleWeapon::laserRechargeCost, SingleWeapon::laserRechargeRate, Vehicletype::JumpDrive::maxDistance, SingleWeapon::maxdistance, ContainerBaseType::maxplus, ContainerBaseType::maxresearchpoints, SingleWeapon::maxstrength, maxwindspeedonwater, SingleWeapon::mindistance, SingleWeapon::minstrength, movemalustyp, movement, movementSoundLabel, SingleWeapon::name, ContainerBaseType::name, ContainerBaseType::nominalresearchpoints, objectGroupsBuildable, objectGroupsRemovable, objectLayedByMovement, objectsBuildable, objectsRemovable, ContainerBaseType::productionCost, SingleWeapon::reactionFireShots, SingleWeapon::soundLabel, SingleWeapon::sourceheight, SingleWeapon::targ, SingleWeapon::targetingAccuracy, Vehicletype::JumpDrive::targetterrain, ContainerBaseType::techDependency, terrainaccess, unitConstructionMoveCostPercentage, vehicle_version, vehiclesBuildable, ContainerBaseType::view, wait, UnitWeapon::weapon, weapons, weight, wreckageObject, TechAdapterDependency::write(), ContainerBaseType::write(), TerrainAccess::write(), Surface::write(), Resources::write(), tnstream::writeChar(), writeClassContainer(), tnstream::writeInt(), tnstream::writeString(), and tnstream::writeWord().


Member Data Documentation

AiValue* Vehicletype::aiparam[8] [mutable]
 

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().

int Vehicletype::armor
 

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().

int Vehicletype::autorepairrate
 

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().

int Vehicletype::bipicture
 

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().

vector<IntRange> Vehicletype::buildingsBuildable
 

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().

double Vehicletype::cargoMovementDivisor
 

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().

ASCString Vehicletype::description
 

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().

int Vehicletype::digrange
 

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().

int Vehicletype::fuelConsumption
 

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().

vector<int> Vehicletype::guideSortHelp
 

Definition at line 275 of file vehicletype.h.

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

int Vehicletype::height
 

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().

vector<HeightChangeMethod> Vehicletype::heightChangeMethod
 

Definition at line 290 of file vehicletype.h.

Referenced by Vehicle::getHeightChange(), read(), runTextIO(), UnitInfoDialog::userHandler(), and write().

int Vehicletype::heightChangeMethodNum
 

Definition at line 277 of file vehicletype.h.

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

int Vehicletype::initiative
 

unused

Definition at line 216 of file vehicletype.h.

Referenced by read(), tmineattacksunit::setup(), tunitattacksbuilding::setup(), tunitattacksunit::setup(), Vehicletype(), and write().

struct Vehicletype::JumpDrive Vehicletype::jumpDrive
 

Referenced by JumpDrive::available(), JumpDrive::fieldReachable(), JumpDrive::jump(), read(), runTextIO(), and write().

ASCString Vehicletype::killSoundLabel
 

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().

const int Vehicletype::legacyVehicleFunctionNum = 29 [static]
 

Definition at line 181 of file vehicletype.h.

Referenced by runTextIO(), and ContainerBaseType::TransportationIO::runTextIO().

int Vehicletype::maxwindspeedonwater
 

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().

int Vehicletype::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.

See also:
cmovemalitypes

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().

vector<int> Vehicletype::movement
 

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().

ASCString Vehicletype::movementSoundLabel
 

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().

vector<IntRange> Vehicletype::objectGroupsBuildable
 

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().

vector<IntRange> Vehicletype::objectGroupsRemovable
 

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().

vector<IntRange> Vehicletype::objectLayedByMovement
 

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().

vector<IntRange> Vehicletype::objectsBuildable
 

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().

vector<IntRange> Vehicletype::objectsRemovable
 

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().

AiParameter::Job Vehicletype::recommendedAIJob
 

the recommended task for the unit, set by the unit creater

Definition at line 264 of file vehicletype.h.

Referenced by runTextIO(), and Vehicletype().

TerrainAccess Vehicletype::terrainaccess
 

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().

int Vehicletype::unitConstructionMoveCostPercentage
 

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().

vector<IntRange> Vehicletype::vehiclesBuildable
 

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().

bool Vehicletype::wait
 

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().

UnitWeapon Vehicletype::weapons
 

The weapons.

Definition at line 249 of file vehicletype.h.

Referenced by attackpossible(), attackpossible28(), attackpossible2n(), attackpossible2u(), VehicleService::avail(), CargoGuiFunctions::RefuelUnitDialog::available(), CargoGuiFunctions::RefuelUnit::available(), CalculateThreat_VehicleType::calc_threat_vehicletype(), calcProductionsCost(), Vehicle::ReactionFire::checkData(), VehicleService::FieldSearch::checkVehicle2Vehicle(), ContainerControls::emptyeverything(), Vehicle::ReactionFire::enable(), Vehicle::endOwnTurn(), VehicleAttack::execute(), Vehicle::fillMagically(), Vehicle::getAmmo(), VehicleProduction_SelectionItemFactory::getCost(), VehicleService::getServices(), ServiceChecker::getServiceWeapon(), Vehicle::getWeapon(), tunit::init(), tputmine::initpm(), VehicleService::FieldSearch::initrefuelling(), internalAmmoTransferAvailable(), InternalAmmoTransferHandler::InternalAmmoTransferHandler(), Vehicle::maxAmmo(), Vehicle::paint(), DashboardPanel::painter(), InternalAmmoTransferHandler::performTransfer(), Vehicle::putAmmo(), putMine(), Vehicle::ReactionFire::ReactionFire(), read(), ContainerControls::refillAmmo(), WeaponRange::run(), runTextIO(), tunitattacksobject::setup(), tunitattacksbuilding::setup(), tunitattacksunit::setup(), DashboardPanel::showUnitData(), Vehicle::transform(), UnitInfoDialog::UnitInfoDialog(), UnitInfoDialog::userHandler(), Vehicle::weapexist(), WeaponInfoPanel::WeaponInfoPanel(), write(), and Vehicle::write().

int Vehicletype::weight
 

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().

vector<int> Vehicletype::wreckageObject
 

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().


The documentation for this class was generated from the following files:
Generated on Wed May 14 01:50:43 2008 for Advanced Strategic Command by  doxygen 1.4.2