#include <containercontrols.h>
Inheritance diagram for ContainerControls:

Public Member Functions | |
| ContainerControls (ContainerBase *cb) | |
| Vehicle * | produceUnit (const Vehicletype *type, bool fillWithAmmo, bool fillWithResources) |
| Resources | calcDestructionOutput (Vehicle *veh) |
| void | destructUnit (Vehicle *veh) |
| bool | unitTrainingAvailable (Vehicle *veh) |
| void | trainUnit (Vehicle *veh) |
| vector< const Vehicletype * > | productionLinesBuyable () |
| Resources | buildProductionLineResourcesNeeded (const Vehicletype *veh) |
| int | buildProductionLine (const Vehicletype *veh) |
| Resources | removeProductionLineResourcesNeeded (const Vehicletype *veh) |
| int | removeProductionLine (const Vehicletype *veh) |
| Vehicle * | produceUnitHypothetically (const Vehicletype *type) |
| only to be used by the AI, this doesn't consume any resources, so the unit must be discarded | |
| void | fillResource (Vehicle *eht, int resourcetype, int newamount) |
| void | fillAmmo (Vehicle *eht, int weapon, int newa) |
| void | refilleverything (Vehicle *eht) |
| void | refillAmmo (Vehicle *veh) |
| void | refillResources (Vehicle *veh) |
| void | emptyeverything (Vehicle *eht) |
| int | getammunition (int weapontype, int num, bool abbuchen, bool produceifrequired) |
| bool | ammotypeavail (int type) |
| int | ammoProducable (int weaptype, int num) |
| int | produceAmmo (int weaptype, int num) |
| bool | moveUnitUpAvail (const Vehicle *veh) |
| bool | moveUnitUp (Vehicle *veh) |
| bool | moveUnitDownAvail (const Vehicle *movingUnit) |
| bool | moveUnitDownAvail (const Vehicle *movingUnit, const Vehicle *newTransport) |
| vector< Vehicle * > | moveUnitDownTargets (const Vehicle *movingUnit) |
| bool | moveUnitDown (Vehicle *veh, Vehicle *newTransport) |
Static Public Member Functions | |
| static VehicleMovement * | movement (Vehicle *eht, bool simpleMode=false) |
|
|
Definition at line 50 of file containercontrols.h. |
|
||||||||||||
|
Definition at line 174 of file containercontrols.cpp. References ContainerBaseType::AmmoProduction, ContainerBase::baseType, cwaffenproduktionskosten, ContainerBase::getResource(), ContainerBaseType::hasFunction(), min(), and Resources::resource(). Referenced by getammunition(), and produceAmmo(). |
|
|
Definition at line 220 of file containercontrols.cpp. |
|
|
|
Definition at line 372 of file containercontrols.cpp. References ContainerBaseType::productionCost, and productionLineConstructionCostFactor. Referenced by buildProductionLine(), and AddProductionLine_SelectionItemFactory::getCost(). |
|
|
Definition at line 294 of file containercontrols.cpp. References ContainerBase::baseType, ContainerBase::damage, destructoutput, ContainerBase::getCargo(), ContainerBaseType::hasFunction(), Resources::material, ContainerBaseType::productionCost, ContainerBaseType::RecycleUnits, recyclingoutput, and Vehicle::typ. Referenced by destructUnit(), and CargoGuiFunctions::RecycleUnit::getName(). |
|
|
Definition at line 313 of file containercontrols.cpp. References calcDestructionOutput(), emptyeverything(), ContainerBase::getIdentification(), logtoreplayinfo(), Resources::Material, Resources::material, Vehicle::networkid, ContainerBase::putResource(), ContainerBase::removeUnitFromCargo(), and rpl_recycleUnit. Referenced by trunreplay::execnextreplaymove(), and CargoGuiFunctions::RecycleUnit::execute(). |
|
|
Definition at line 278 of file containercontrols.cpp. References fillAmmo(), fillResource(), SingleWeapon::requiresAmmo(), Vehicle::typ, UnitWeapon::weapon, and Vehicletype::weapons. Referenced by destructUnit(). |
|
||||||||||||||||
|
Definition at line 240 of file containercontrols.cpp. References getammunition(), logtoreplayinfo(), ContainerBase::putAmmo(), and rpl_refuel. Referenced by emptyeverything(), and refillAmmo(). |
|
||||||||||||||||
|
Definition at line 227 of file containercontrols.cpp. References ContainerBase::getIdentification(), ContainerBase::getResource(), Vehicle::getResource(), Vehicle::getTank(), logtoreplayinfo(), maxint, Vehicle::networkid, Vehicle::putResource(), rpl_refuel2, rpl_refuel3, Vehicle::xpos, and Vehicle::ypos. Referenced by emptyeverything(), and refillResources(). |
|
||||||||||||||||||||
|
Definition at line 207 of file containercontrols.cpp. References ammoProducable(), ContainerBaseType::AmmoProduction, ContainerBase::getAmmo(), and produceAmmo(). Referenced by trunreplay::execnextreplaymove(), and fillAmmo(). |
|
||||||||||||
|
Definition at line 154 of file containercontrols.cpp. References VehicleMovement::DisableHeightChange, VehicleMovement::execute(), and getDefaultMapDisplay(). Referenced by CargoGuiFunctions::Movement::execute(). |
|
||||||||||||
|
Definition at line 510 of file containercontrols.cpp. References ContainerBase::addToCargo(), ContainerBase::getPosition(), logtoreplayinfo(), Vehicle::networkid, ContainerBase::removeUnitFromCargo(), rpl_moveUnitUpDown, and ContainerBase::vehicleFit(). |
|
||||||||||||
|
Definition at line 488 of file containercontrols.cpp. References ContainerBase::vehicleFit(). |
|
|
Definition at line 483 of file containercontrols.cpp. References moveUnitDownTargets(). Referenced by moveUnitDownTargets(). |
|
|
Definition at line 494 of file containercontrols.cpp. References ContainerBase::getCargo(), and moveUnitDownAvail(). Referenced by moveUnitDownAvail(). |
|
|
Definition at line 460 of file containercontrols.cpp. References logtoreplayinfo(), moveUnitUpAvail(), and rpl_moveUnitUp. Referenced by trunreplay::execnextreplaymove(). |
|
|
Definition at line 449 of file containercontrols.cpp. References ContainerBase::getCarrier(). Referenced by moveUnitUp(). |
|
||||||||||||
|
Definition at line 195 of file containercontrols.cpp. References ammoProducable(), cwaffenproduktionskosten, ContainerBase::getPosition(), ContainerBase::getResource(), logtoreplayinfo(), ContainerBase::putAmmo(), and rpl_produceAmmo. Referenced by trunreplay::execnextreplaymove(), VehicleService::execute(), NewVehicleService::executeContainer(), and getammunition(). |
|
||||||||||||||||
|
|
only to be used by the AI, this doesn't consume any resources, so the unit must be discarded
Definition at line 126 of file containercontrols.cpp. References actmap, GameMap::actplayer, Player::buildingList, cgp_bi3_training, Vehicle::experience, GameMap::getgameparameter(), ContainerBase::getPosition(), maxunitexperience, GameMap::player, Vehicle::setnewposition(), ContainerBaseType::TrainingCenter, ContainerConstControls::unitProductionAvailable(), and ContainerConstControls::unitProductionPrerequisites(). |
|
|
|
Definition at line 259 of file containercontrols.cpp. References fillAmmo(), maxint, SingleWeapon::requiresAmmo(), Vehicle::typ, UnitWeapon::weapon, and Vehicletype::weapons. Referenced by ContainerBase::endOwnTurn(), produceUnit(), and refilleverything(). |
|
|
Definition at line 272 of file containercontrols.cpp. References refillAmmo(), and refillResources(). |
|
|
Definition at line 266 of file containercontrols.cpp. References fillResource(), and maxint. Referenced by produceUnit(), and refilleverything(). |
|
|
|
Definition at line 398 of file containercontrols.cpp. References ContainerBaseType::productionCost, and productionLineRemovalCostFactor. Referenced by removeProductionLine(). |
|
|
Definition at line 353 of file containercontrols.cpp. References actmap, cgp_maxtrainingexperience, cgp_trainingIncrement, GameMap::getgameparameter(), ContainerBase::getMap(), ContainerBase::getPosition(), logtoreplayinfo(), rpl_trainunit, and unitTrainingAvailable(). Referenced by ContainerBase::endOwnTurn(), and trunreplay::execnextreplaymove(). |
|
|
Definition at line 327 of file containercontrols.cpp. References actmap, ContainerBase::baseType, cgp_bi3_training, cgp_maxtrainingexperience, GameMap::getgameparameter(), ContainerBase::getMap(), ContainerBaseType::hasFunction(), and ContainerBaseType::TrainingCenter. Referenced by ContainerBase::endOwnTurn(), trunreplay::execnextreplaymove(), and trainUnit(). |
1.4.2