#include <servicing.h>
Inheritance diagram for ServiceTargetSearcher:

Public Types | |
| typedef vector< ContainerBase * > | Targets |
Public Member Functions | |
| bool | externallyAvailable () |
| ServiceTargetSearcher (ContainerBase *src, int checkFlags) | |
| void | startSearch () |
| const Targets & | getTargets () const |
Static Public Attributes | |
| static const int | checkAmmo = 1 |
| static const int | checkResources = 2 |
| static const int | checkRepair = 4 |
Protected Member Functions | |
| void | ammo (ContainerBase *dest, int type) |
| void | resource (ContainerBase *dest, int type, bool active) |
| void | repair (ContainerBase *dest) |
Protected Attributes | |
| Targets | targets |
Definition at line 120 of file servicing.h.
Definition at line 129 of file servicing.h.
| ServiceTargetSearcher::ServiceTargetSearcher | ( | ContainerBase * | src, | |
| int | checkFlags | |||
| ) |
| void ServiceTargetSearcher::ammo | ( | ContainerBase * | dest, | |
| int | type | |||
| ) | [protected, virtual] |
| void ServiceTargetSearcher::resource | ( | ContainerBase * | dest, | |
| int | type, | |||
| bool | active | |||
| ) | [protected, virtual] |
| void ServiceTargetSearcher::repair | ( | ContainerBase * | dest | ) | [protected, virtual] |
| bool ServiceTargetSearcher::externallyAvailable | ( | ) |
Definition at line 740 of file servicing.cpp.
References Vehicle::attacked, ContainerBase::baseType, ContainerBaseType::ExternalAmmoTransfer, ContainerBaseType::ExternalEnergyTransfer, ContainerBaseType::ExternalFuelTransfer, ContainerBaseType::ExternalMaterialTransfer, GameMap::getField(), ContainerBase::getMap(), ContainerBase::getPosition(), ServiceChecker::getServiceWeapon(), Vehicle::ReactionFire::getStatus(), ContainerBaseType::hasFunction(), ContainerBaseType::MoveWithReactionFire, Vehicle::ReactionFire::off, Vehicle::reactionfire, and ServiceChecker::source.
Referenced by ServiceCommand::avail(), and ServiceCommand::availExternally().
| void ServiceTargetSearcher::startSearch | ( | ) |
Definition at line 777 of file servicing.cpp.
References ServiceChecker::check(), circularFieldIterator(), ContainerBase::getCargo(), GameMap::getField(), ContainerBase::getMap(), ContainerBase::getPosition(), ServiceChecker::getServiceWeapon(), maxmalq, and ServiceChecker::source.
Referenced by ServiceCommand::getDestinations(), RepairUnitCommand::getExternalTargets(), RepairUnitCommand::getInternalTargets(), and RepairUnitCommand::validTarget().
| const Targets& ServiceTargetSearcher::getTargets | ( | ) | const [inline] |
Definition at line 145 of file servicing.h.
References targets.
Referenced by ServiceCommand::avail(), ServiceCommand::getDestinations(), RepairUnitCommand::getExternalTargets(), RepairUnitCommand::getInternalTargets(), and RepairUnitCommand::validTarget().
Targets ServiceTargetSearcher::targets [protected] |
const int ServiceTargetSearcher::checkAmmo = 1 [static] |
Definition at line 139 of file servicing.h.
Referenced by ammo(), ServiceCommand::avail(), ServiceCommand::availExternally(), and ServiceCommand::getDestinations().
const int ServiceTargetSearcher::checkResources = 2 [static] |
Definition at line 140 of file servicing.h.
Referenced by ServiceCommand::avail(), ServiceCommand::availExternally(), ServiceCommand::getDestinations(), and resource().
const int ServiceTargetSearcher::checkRepair = 4 [static] |
Definition at line 141 of file servicing.h.
Referenced by RepairUnitCommand::getExternalTargets(), RepairUnitCommand::getInternalTargets(), repair(), and RepairUnitCommand::validTarget().
1.5.1