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

Public Types | |
| typedef deallocating_vector< Transferrable * > | Transfers |
Public Member Functions | |
| TransferHandler (ContainerBase *src, ContainerBase *dst, int flags=0) | |
| bool | allowAmmoProduction (bool allow) |
| bool | ammoProductionPossible () |
| Transfers & | getTransfers () |
| void | fillDest () |
| void | fillDestAmmo () |
| void | fillDestResource () |
| void | emptyDest () |
| bool | commit (const Context &context) |
| ~TransferHandler () | |
Public Attributes | |
| SigC::Signal0< bool > | updateRanges |
Protected Member Functions | |
| void | ammo (ContainerBase *dest, int type) |
| void | resource (ContainerBase *dest, int type, bool active) |
| void | repair (ContainerBase *dest) |
Definition at line 151 of file servicing.h.
Definition at line 156 of file servicing.h.
| TransferHandler::TransferHandler | ( | ContainerBase * | src, | |
| ContainerBase * | dst, | |||
| int | flags = 0 | |||
| ) |
Definition at line 806 of file servicing.cpp.
References CGameOptions::autoproduceammunition, ServiceChecker::check(), CGameOptions::Instance(), and TRUCE.
| TransferHandler::~TransferHandler | ( | ) |
Definition at line 827 of file servicing.cpp.
References CGameOptions::autoproduceammunition, CGameOptions::Instance(), and CGameOptions::setChanged().
| void TransferHandler::ammo | ( | ContainerBase * | dest, | |
| int | type | |||
| ) | [protected, virtual] |
| void TransferHandler::resource | ( | ContainerBase * | dest, | |
| int | type, | |||
| bool | active | |||
| ) | [protected, virtual] |
| void TransferHandler::repair | ( | ContainerBase * | dest | ) | [inline, protected, virtual] |
| bool TransferHandler::allowAmmoProduction | ( | bool | allow | ) |
Definition at line 816 of file servicing.cpp.
References ammoProductionPossible(), and updateRanges.
Referenced by AmmoTransferWindow::AmmoTransferWindow().
| bool TransferHandler::ammoProductionPossible | ( | ) |
Definition at line 835 of file servicing.cpp.
References ContainerBaseType::AmmoProduction, ContainerBase::baseType, and ContainerBaseType::hasFunction().
Referenced by allowAmmoProduction(), and AmmoTransferWindow::AmmoTransferWindow().
| TransferHandler::Transfers & TransferHandler::getTransfers | ( | ) |
Definition at line 840 of file servicing.cpp.
Referenced by AmmoTransferWindow::AmmoTransferWindow(), ServiceCommand::getTransferHandler(), ServiceCommand::go(), ServiceCommand::saveTransfers(), and AmmoTransferWindow::somethingToTransfer().
| void TransferHandler::fillDest | ( | ) |
Definition at line 845 of file servicing.cpp.
Referenced by GuiFunctions::RefuelUnitCommand::execute().
| void TransferHandler::fillDestAmmo | ( | ) |
Definition at line 852 of file servicing.cpp.
Referenced by autoTrainer(), and CargoGuiFunctions::UnitProduction::execute().
| void TransferHandler::fillDestResource | ( | ) |
Definition at line 860 of file servicing.cpp.
Referenced by CargoGuiFunctions::UnitProduction::execute().
| void TransferHandler::emptyDest | ( | ) |
Definition at line 869 of file servicing.cpp.
| bool TransferHandler::commit | ( | const Context & | context | ) |
Definition at line 877 of file servicing.cpp.
| SigC::Signal0<bool> TransferHandler::updateRanges |
Definition at line 185 of file servicing.h.
Referenced by allowAmmoProduction(), and TransferWidget::TransferWidget().
1.5.1