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

GuiFunctions::DestructBuilding Class Reference

Inheritance diagram for GuiFunctions::DestructBuilding:

Inheritance graph
[legend]
List of all members.

Public Member Functions

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

Constructor & Destructor Documentation

GuiFunctions::DestructBuilding::DestructBuilding  )  [inline]
 

Definition at line 820 of file guifunctions.cpp.


Member Function Documentation

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

Implements GuiFunction.

Definition at line 842 of file guifunctions.cpp.

References tfield::a, PendingVehicleActions::actionType, actmap, GameMap::actplayer, Vehicle::attacked, Vehicletype::buildingsBuildable, ContainerBase::color, ContainerBaseType::ConstructBuildings, destruct_building_fuel_usage, Vehicletype::fuelConsumption, GameMap::getField(), Vehicle::getTank(), ContainerBaseType::hasFunction(), Vehicle::hasMoved(), moveparams, tmoveparams::movestatus, pendingVehicleActions, Vehicle::typ, vat_nothing, and tfield::vehicle.

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

Reimplemented from GuiFunction.

Definition at line 823 of file guifunctions.cpp.

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

Implements GuiFunction.

Definition at line 865 of file guifunctions.cpp.

References PendingVehicleActions::actionType, actmap, GameMap::cleartemps(), destructbuildinglevel1(), destructbuildinglevel2(), displaymap(), moveparams, tmoveparams::movestatus, pendingVehicleActions, updateFieldInfo, vat_nothing, MapCoordinate::x, and MapCoordinate::y.

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

Implements GuiFunction.

Definition at line 831 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 835 of file guifunctions.cpp.


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