GuiFunctions::DestructBuilding Class Reference

Inheritance diagram for GuiFunctions::DestructBuilding:

Inheritance graph
[legend]
List of all members.

Public Member Functions

bool available (const MapCoordinate &pos, ContainerBase *subject, 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 729 of file guifunctions.cpp.


Member Function Documentation

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

Implements GuiFunction.

Definition at line 743 of file guifunctions.cpp.

References actmap, DestructBuildingCommand::avail(), commandPending(), GameMap::getField(), DestructBuildingCommand::isFieldUsable(), NewGuiHost::pendingCommand, and MapField::vehicle.

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

Implements GuiFunction.

Definition at line 758 of file guifunctions.cpp.

References MapField::a, actmap, GameMap::cleartemps(), createContext(), ActionRegistry::DestructBuildingCommand, displayActionError(), dispmessage2(), GameAction::execute(), GameMap::getField(), NewGuiHost::pendingCommand, repaintMap, DestructBuildingCommand::setTargetPosition(), ActionResult::successful(), updateFieldInfo, and MapField::vehicle.

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

Implements GuiFunction.

Definition at line 734 of file guifunctions.cpp.

References IconRepository::getIcon().

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

Implements GuiFunction.

Definition at line 737 of file guifunctions.cpp.


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