TransferHandler Class Reference

#include <servicing.h>

Inheritance diagram for TransferHandler:

Inheritance graph
[legend]
List of all members.

Public Types

typedef deallocating_vector<
Transferrable * > 
Transfers

Public Member Functions

 TransferHandler (ContainerBase *src, ContainerBase *dst, int flags=0)
bool allowAmmoProduction (bool allow)
bool ammoProductionPossible ()
TransfersgetTransfers ()
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)

Detailed Description

Definition at line 151 of file servicing.h.


Member Typedef Documentation

typedef deallocating_vector<Transferrable*> TransferHandler::Transfers

Definition at line 156 of file servicing.h.


Constructor & Destructor Documentation

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


Member Function Documentation

void TransferHandler::ammo ( ContainerBase dest,
int  type 
) [protected, virtual]

Implements ServiceChecker.

Definition at line 796 of file servicing.cpp.

void TransferHandler::resource ( ContainerBase dest,
int  type,
bool  active 
) [protected, virtual]

Implements ServiceChecker.

Definition at line 801 of file servicing.cpp.

void TransferHandler::repair ( ContainerBase dest  )  [inline, protected, virtual]

Implements ServiceChecker.

Definition at line 168 of file servicing.h.

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.


Member Data Documentation

SigC::Signal0<bool> TransferHandler::updateRanges

Definition at line 185 of file servicing.h.

Referenced by allowAmmoProduction(), and TransferWidget::TransferWidget().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:47:55 2012 for Advanced Strategic Command by  doxygen 1.5.1