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

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)

Member Function Documentation

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

Implements GuiFunction.

Definition at line 1172 of file guifunctions.cpp.

References PendingVehicleActions::actionType, actmap, GameMap::actplayer, VehicleService::avail(), ContainerBase::color, VehicleService::dest, GameMap::getField(), VehicleService::getServices(), VehicleService::guimode, moveparams, tmoveparams::movestatus, Vehicle::networkid, pendingVehicleActions, PendingVehicleActions::service, VehicleService::srv_repair, vat_nothing, vat_service, and tfield::vehicle.

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

Reimplemented from GuiFunction.

Definition at line 1196 of file guifunctions.cpp.

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

Implements GuiFunction.

Definition at line 1200 of file guifunctions.cpp.

References tfield::a, PendingVehicleActions::actionType, actmap, GameMap::cleartemps(), VehicleService::dest, dispmessage2(), VehicleService::execute(), getDefaultMapDisplay(), getfield(), GameMap::getField(), VehicleService::guimode, Vehicle::networkid, pendingVehicleActions, repaintMap, PendingVehicleActions::service, VehicleService::srv_repair, updateFieldInfo, vat_nothing, and tfield::vehicle.

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

Implements GuiFunction.

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

References actmap, GameMap::getField(), VehicleService::getVehicle(), pendingVehicleActions, PendingVehicleActions::service, Resources::toString(), and tfield::vehicle.


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