GuiFunctions::RepairUnit Class Reference

Inheritance diagram for GuiFunctions::RepairUnit:

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 1004 of file guifunctions.cpp.


Member Function Documentation

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

Implements GuiFunction.

Definition at line 1007 of file guifunctions.cpp.

References actmap, GameMap::actplayer, RepairUnitCommand::availExternally(), commandPending(), GameMap::getField(), ContainerBase::getOwner(), NewGuiHost::pendingCommand, RepairUnitCommand::validTarget(), and MapField::vehicle.

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

Reimplemented from GuiFunction.

Definition at line 1024 of file guifunctions.cpp.

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

Implements GuiFunction.

Definition at line 1027 of file guifunctions.cpp.

References actmap, commandPending(), createContext(), displayActionError(), dispmessage2(), GameAction::execute(), GameMap::getField(), NewGuiHost::pendingCommand, repaintMap, ActionRegistry::RepairUnitCommand, RepairUnitCommand::setTarget(), ActionResult::successful(), MapField::temp, updateFieldInfo, and MapField::vehicle.

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

Implements GuiFunction.

Definition at line 1068 of file guifunctions.cpp.

References IconRepository::getIcon().

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

Implements GuiFunction.

Definition at line 1072 of file guifunctions.cpp.

References actmap, GameMap::getField(), ContainerBase::getMaxRepair(), RepairUnitCommand::getRepairingUnit(), NewGuiHost::pendingCommand, Resources::toString(), and MapField::vehicle.


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