GuiFunctions::RefuelUnitCommand Class Reference

Inheritance diagram for GuiFunctions::RefuelUnitCommand:

Inheritance graph
[legend]
List of all members.

Public Member Functions

bool available (const MapCoordinate &pos, ContainerBase *subject, int num)
bool checkForKey (const SDL_KeyboardEvent *key, int modifier, int num)
void execute (const MapCoordinate &pos, ContainerBase *subject, int num)
SurfacegetImage (const MapCoordinate &pos, ContainerBase *subject, int num)
ASCString getName (const MapCoordinate &pos, ContainerBase *subject, int num)

Detailed Description

Definition at line 1089 of file guifunctions.cpp.


Member Function Documentation

bool GuiFunctions::RefuelUnitCommand::available ( const MapCoordinate pos,
ContainerBase subject,
int  num 
) [inline, virtual]

Implements GuiFunction.

Definition at line 1092 of file guifunctions.cpp.

References actmap, GameMap::actplayer, ServiceCommand::availExternally(), commandPending(), MapField::getContainer(), ServiceCommand::getDestinations(), GameMap::getField(), ContainerBase::getOwner(), and NewGuiHost::pendingCommand.

bool GuiFunctions::RefuelUnitCommand::checkForKey ( const SDL_KeyboardEvent *  key,
int  modifier,
int  num 
) [inline, virtual]

Reimplemented from GuiFunction.

Definition at line 1111 of file guifunctions.cpp.

void GuiFunctions::RefuelUnitCommand::execute ( const MapCoordinate pos,
ContainerBase subject,
int  num 
) [inline, virtual]

Implements GuiFunction.

Definition at line 1115 of file guifunctions.cpp.

References MapField::a, actmap, GameMap::cleartemps(), createContext(), displaymap(), dispmessage2(), GameAction::execute(), TransferHandler::fillDest(), ServiceCommand::getTransferHandler(), NewGuiHost::pendingCommand, ServiceCommand::saveTransfers(), ActionRegistry::ServiceCommand, ServiceCommand::setDestination(), ActionResult::successful(), and updateFieldInfo.

Surface& GuiFunctions::RefuelUnitCommand::getImage ( const MapCoordinate pos,
ContainerBase subject,
int  num 
) [inline, virtual]

Implements GuiFunction.

Definition at line 1159 of file guifunctions.cpp.

References IconRepository::getIcon().

ASCString GuiFunctions::RefuelUnitCommand::getName ( const MapCoordinate pos,
ContainerBase subject,
int  num 
) [inline, virtual]

Implements GuiFunction.

Definition at line 1163 of file guifunctions.cpp.


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