Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

NewVehicleService Class Reference

#include <unitctrl.h>

Inheritance diagram for NewVehicleService:

Inheritance graph
[legend]
List of all members.

Public Types

typedef ServiceTargetSearcher::Targets Targets

Public Member Functions

ContainerBasegetContainer ()
int getStatus (void)
virtual int available (ContainerBase *veh) const
virtual int available (Vehicle *veh) const
int executeContainer (ContainerBase *veh, int x, int y, int step, int pos, int amount)
int execute (Vehicle *veh, int x, int y, int step, int pos, int amount)
bool targetAvail (const ContainerBase *target)
int fillEverything (ContainerBase *target, bool repairsToo=false)
virtual void registerPVA (VehicleActionType _actionType, PPendingVehicleActions _pva)
 NewVehicleService (MapDisplayInterface *md, PPendingVehicleActions _pva=NULL)
virtual ~NewVehicleService ()

Static Public Member Functions

static int avail (ContainerBase *veh)

Public Attributes

ServiceTargetSearcher::Targets targets
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

MapDisplayInterfacemapDisplay

Member Typedef Documentation

typedef ServiceTargetSearcher::Targets NewVehicleService::Targets
 

Definition at line 382 of file unitctrl.h.


Constructor & Destructor Documentation

NewVehicleService::NewVehicleService MapDisplayInterface md,
PPendingVehicleActions  _pva = NULL
 

Definition at line 1790 of file unitctrl.cpp.

References mapDisplay, PendingVehicleActions::newservice, and VehicleAction::pva.

NewVehicleService::~NewVehicleService  )  [virtual]
 

Definition at line 1957 of file unitctrl.cpp.

References PendingVehicleActions::newservice, and VehicleAction::pva.


Member Function Documentation

int NewVehicleService::avail ContainerBase veh  )  [static]
 

Definition at line 1806 of file unitctrl.cpp.

References ServiceTargetSearcher::available().

Referenced by available(), and GuiFunctions::RefuelUnit::available().

int NewVehicleService::available Vehicle veh  )  const [virtual]
 

Implements VehicleAction.

Definition at line 1818 of file unitctrl.cpp.

References avail().

int NewVehicleService::available ContainerBase veh  )  const [virtual]
 

Definition at line 1812 of file unitctrl.cpp.

References avail().

int NewVehicleService::execute Vehicle veh,
int  x,
int  y,
int  step,
int  pos,
int  amount
[virtual]
 

Implements VehicleAction.

Definition at line 1824 of file unitctrl.cpp.

References executeContainer().

int NewVehicleService::executeContainer ContainerBase veh,
int  x,
int  y,
int  step,
int  pos,
int  amount
 

Definition at line 1829 of file unitctrl.cpp.

References fatalError(), ServiceTargetSearcher::getTargets(), logtoreplayinfo(), ContainerControls::produceAmmo(), rpl_bldrefuel, rpl_refuel, rpl_refuel2, rpl_repairUnit, ServiceTargetSearcher::startSearch(), targets, MapCoordinate::x, and MapCoordinate::y.

Referenced by execute(), and GuiFunctions::RefuelUnit::execute().

int NewVehicleService::fillEverything ContainerBase target,
bool  repairsToo = false
 

Definition at line 1933 of file unitctrl.cpp.

References TransferHandler::commit(), TransferHandler::fillDest(), getContainer(), and targetAvail().

Referenced by GuiFunctions::RefuelUnit::execute().

ContainerBase* NewVehicleService::getContainer  )  [inline]
 

Definition at line 392 of file unitctrl.h.

Referenced by GuiFunctions::RefuelUnitDialog::execute(), GuiFunctions::RefuelUnit::execute(), and fillEverything().

int NewVehicleService::getStatus void   )  [inline, virtual]
 

Implements VehicleAction.

Definition at line 394 of file unitctrl.h.

void NewVehicleService::registerPVA VehicleActionType  _actionType,
PPendingVehicleActions  _pva
[virtual]
 

Reimplemented from VehicleAction.

Definition at line 1949 of file unitctrl.cpp.

References PendingVehicleActions::newservice, VehicleAction::pva, and VehicleAction::registerPVA().

bool NewVehicleService::targetAvail const ContainerBase target  ) 
 

Definition at line 1800 of file unitctrl.cpp.

References targets.

Referenced by GuiFunctions::RefuelUnit::available(), GuiFunctions::RefuelUnit::execute(), and fillEverything().


Member Data Documentation

int NewVehicleService::guimode
 

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 409 of file unitctrl.h.

MapDisplayInterface* NewVehicleService::mapDisplay [protected]
 

Definition at line 390 of file unitctrl.h.

Referenced by NewVehicleService().

ServiceTargetSearcher::Targets NewVehicleService::targets
 

Definition at line 383 of file unitctrl.h.

Referenced by GuiFunctions::RefuelUnit::execute(), executeContainer(), and targetAvail().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:18:37 2008 for Advanced Strategic Command by  doxygen 1.4.2