GuiFunctions::BuildVehicleCommand Class Reference

Inheritance diagram for GuiFunctions::BuildVehicleCommand:

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


Member Function Documentation

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

Implements GuiFunction.

Definition at line 1663 of file guifunctions.cpp.

References actmap, GameMap::actplayer, commandPending(), ConstructUnitCommand::externalConstructionAvail(), GameMap::getField(), ContainerBase::getOwner(), ConstructUnitCommand::isFieldUsable(), NewGuiHost::pendingCommand, and MapField::vehicle.

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

Implements GuiFunction.

Definition at line 1680 of file guifunctions.cpp.

References actmap, GameMap::cleartemps(), ActionRegistry::ConstructUnitCommand, createContext(), dispmessage2(), ConstructUnitCommand::Lack::Energy, GameAction::execute(), ConstructUnitCommand::external, ConstructUnitCommand::Lack::Fuel, VehicleProduction_SelectionWindow::getVehicletype(), ConstructUnitCommand::Lack::Material, Vehicle::maxMovement(), ConstructUnitCommand::Lack::Movement, NewGuiHost::pendingCommand, repaintMap, ConstructUnitCommand::Lack::Research, ASC_PG_Dialog::RunModal(), ConstructUnitCommand::setTargetPosition(), ActionResult::successful(), VehicleType::terrainaccess, TerrainAccess::toString(), ASCString::toString(), Vehicle::typ, VehicleType::unitConstructionMoveCostPercentage, updateFieldInfo, and warningMessage().

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

Implements GuiFunction.

Definition at line 1654 of file guifunctions.cpp.

References IconRepository::getIcon().

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

Implements GuiFunction.

Definition at line 1657 of file guifunctions.cpp.


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