Advanced Strategic Command
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
TransferHandler Class Reference

#include <servicing.h>

Inheritance diagram for TransferHandler:
Inheritance graph
[legend]

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::signal< bool > updateRanges
 

Protected Member Functions

void ammo (ContainerBase *dest, int type)
 
void resource (ContainerBase *dest, int type, bool active)
 
void repair (ContainerBase *dest)
 
- Protected Member Functions inherited from ServiceChecker
const SingleWeapongetServiceWeapon ()
 
 ServiceChecker (ContainerBase *src, int skipChecks=0)
 
void check (ContainerBase *dest)
 
virtual ~ServiceChecker ()
 

Additional Inherited Members

- Protected Attributes inherited from ServiceChecker
ContainerBasesource
 
int ignoreChecks
 
- Static Protected Attributes inherited from ServiceChecker
static const int ignoreHeight = 1
 
static const int ignoreDistance = 2
 

Detailed Description

Definition at line 151 of file servicing.h.

Member Typedef Documentation

Definition at line 156 of file servicing.h.

Constructor & Destructor Documentation

TransferHandler::TransferHandler ( ContainerBase src,
ContainerBase dst,
int  flags = 0 
)
TransferHandler::~TransferHandler ( )

Member Function Documentation

bool TransferHandler::allowAmmoProduction ( bool  allow)

Definition at line 816 of file servicing.cpp.

References ammoProductionPossible(), and updateRanges.

Referenced by AmmoTransferWindow::AmmoTransferWindow().

void TransferHandler::ammo ( ContainerBase dest,
int  type 
)
protectedvirtual

Implements ServiceChecker.

Definition at line 796 of file servicing.cpp.

bool TransferHandler::ammoProductionPossible ( )
bool TransferHandler::commit ( const Context context)

Definition at line 877 of file servicing.cpp.

void TransferHandler::emptyDest ( )

Definition at line 869 of file servicing.cpp.

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

TransferHandler::Transfers & TransferHandler::getTransfers ( )
void TransferHandler::repair ( ContainerBase dest)
inlineprotectedvirtual

Implements ServiceChecker.

Definition at line 168 of file servicing.h.

void TransferHandler::resource ( ContainerBase dest,
int  type,
bool  active 
)
protectedvirtual

Implements ServiceChecker.

Definition at line 801 of file servicing.cpp.

Member Data Documentation

sigc::signal<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: