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

CargoGuiFunctions::Movement Class Reference

Inheritance diagram for CargoGuiFunctions::Movement:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Movement (CargoDialog &masterParent)
bool available (const MapCoordinate &pos, ContainerBase *subject, int num)
void execute (const MapCoordinate &pos, ContainerBase *subject, int num)
bool checkForKey (const SDL_KeyboardEvent *key, int modifier, int num)
SurfacegetImage (const MapCoordinate &pos, ContainerBase *subject, int num)
ASCString getName (const MapCoordinate &pos, ContainerBase *subject, int num)

Constructor & Destructor Documentation

CargoGuiFunctions::Movement::Movement CargoDialog masterParent  )  [inline]
 

Definition at line 145 of file cargodialog.cpp.


Member Function Documentation

bool CargoGuiFunctions::Movement::available const MapCoordinate pos,
ContainerBase subject,
int  num
[virtual]
 

Implements GuiFunction.

Definition at line 2111 of file cargodialog.cpp.

References PendingVehicleActions::actionType, Vehicle::canMove(), ContainerBase::getMap(), ContainerBase::getOwner(), pendingVehicleActions, and vat_nothing.

bool CargoGuiFunctions::Movement::checkForKey const SDL_KeyboardEvent *  key,
int  modifier,
int  num
[virtual]
 

Reimplemented from GuiFunction.

Definition at line 2097 of file cargodialog.cpp.

void CargoGuiFunctions::Movement::execute const MapCoordinate pos,
ContainerBase subject,
int  num
[virtual]
 

Implements GuiFunction.

Definition at line 2123 of file cargodialog.cpp.

References actmap, CargoDialog::cargoChanged(), GameMap::cleartemps(), ct_lshift, ct_rshift, FieldList< T >::getField(), getmessage(), PG_Widget::Hide(), infoMessage(), mainScreenWidget, PendingVehicleActions::move, ContainerControls::movement(), pendingVehicleActions, NewGuiHost::popIconHandler(), NewGuiHost::pushIconHandler(), VehicleMovement::reachableFields, VehicleMovement::reachableFieldsIndirect, VehicleMovement::registerPVA(), GuiIconHandler::registerUserFunction(), repaintMap, PG_Widget::Show(), skeypress(), and vat_move.

Surface & CargoGuiFunctions::Movement::getImage const MapCoordinate pos,
ContainerBase subject,
int  num
[virtual]
 

Implements GuiFunction.

Definition at line 2102 of file cargodialog.cpp.

References IconRepository::getIcon().

ASCString CargoGuiFunctions::Movement::getName const MapCoordinate pos,
ContainerBase subject,
int  num
[virtual]
 

Implements GuiFunction.

Definition at line 2106 of file cargodialog.cpp.


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