#include <unitctrl.h>
Inheritance diagram for VehicleService:

Public Types | |
| typedef map< int, Target > | TargetContainer |
| enum | Service { srv_repair, srv_resource, srv_ammo } |
Public Member Functions | |
| Vehicle * | getVehicle (void) |
| Building * | getBuilding (void) |
| int | getStatus (void) |
| virtual int | available (Vehicle *veh) const |
| int | execute (Vehicle *veh, int targetNWID, int dummy, int step, int pos, int amount) |
| int | fillEverything (int targetNWID, bool repairsToo) |
| virtual void | registerPVA (VehicleActionType _actionType, PPendingVehicleActions _pva) |
| VehicleService (MapDisplayInterface *md, PPendingVehicleActions _pva=NULL) | |
| virtual | ~VehicleService () |
Static Public Member Functions | |
| static int | avail (const Vehicle *veh) |
| static int | getServices (Vehicle *veh) |
Public Attributes | |
| VehicleService::FieldSearch | fieldSearch |
| TargetContainer | dest |
| int | guimode |
| here the gui stores which icon initiated the service; thus preventing the occurance of an repair icon when a fuel transfer was initiated. | |
Protected Attributes | |
| MapDisplayInterface * | mapDisplay |
Classes | |
| class | FieldSearch |
| class | Target |
|
|
Definition at line 338 of file unitctrl.h. |
|
|
Definition at line 321 of file unitctrl.h. |
|
||||||||||||
|
Definition at line 1233 of file unitctrl.cpp. References guimode, mapDisplay, VehicleAction::pva, and PendingVehicleActions::service. |
|
|
Definition at line 1772 of file unitctrl.cpp. References VehicleAction::pva, and PendingVehicleActions::service. |
|
|
Definition at line 1246 of file unitctrl.cpp. References SingleWeapon::canRefuel(), ContainerBaseType::ExternalEnergyTransfer, ContainerBaseType::ExternalFuelTransfer, ContainerBaseType::ExternalMaterialTransfer, ContainerBaseType::ExternalRepair, Vehicle::ReactionFire::off, SingleWeapon::service(), UnitWeapon::weapon, and Vehicletype::weapons. Referenced by available(), and GuiFunctions::RepairUnit::available(). |
|
|
Implements VehicleAction. Definition at line 1283 of file unitctrl.cpp. References avail(). |
|
||||||||||||||||||||||||||||
|
||||||||||||
|
Definition at line 1736 of file unitctrl.cpp. References dest, execute(), VehicleService::Target::service, srv_ammo, srv_repair, and srv_resource. |
|
|
Definition at line 319 of file unitctrl.h. |
|
|
|
Implements VehicleAction. Definition at line 341 of file unitctrl.h. |
|
|
Definition at line 318 of file unitctrl.h. Referenced by GuiFunctions::RepairUnit::getName(). |
|
||||||||||||
|
Reimplemented from VehicleAction. Definition at line 1764 of file unitctrl.cpp. References VehicleAction::pva, VehicleAction::registerPVA(), and PendingVehicleActions::service. |
|
|
Definition at line 339 of file unitctrl.h. Referenced by GuiFunctions::RepairUnit::available(), VehicleService::FieldSearch::checkBuilding2Vehicle(), VehicleService::FieldSearch::checkVehicle2Vehicle(), execute(), GuiFunctions::RepairUnit::execute(), and fillEverything(). |
|
|
Referenced by execute(). |
|
|
here the gui stores which icon initiated the service; thus preventing the occurance of an repair icon when a fuel transfer was initiated.
Definition at line 352 of file unitctrl.h. Referenced by GuiFunctions::RepairUnit::available(), GuiFunctions::RepairUnit::execute(), and VehicleService(). |
|
|
Definition at line 316 of file unitctrl.h. Referenced by VehicleService(). |
1.4.2