
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) |
| Surface & | getImage (const MapCoordinate &pos, ContainerBase *subject, int num) |
| ASCString | getName (const MapCoordinate &pos, ContainerBase *subject, int num) |
Definition at line 177 of file cargodialog.cpp.
| CargoGuiFunctions::Movement::Movement | ( | CargoDialog & | masterParent | ) | [inline] |
Definition at line 181 of file cargodialog.cpp.
| bool CargoGuiFunctions::Movement::available | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [virtual] |
Implements GuiFunction.
Definition at line 2039 of file cargodialog.cpp.
References GameMap::actplayer, Vehicle::canMove(), ContainerBase::getMap(), and ContainerBase::getOwner().
| void CargoGuiFunctions::Movement::execute | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [virtual] |
Implements GuiFunction.
Definition at line 2047 of file cargodialog.cpp.
References MapField::a, CargoDialog::cargoChanged(), GameMap::cleartemps(), MoveUnitCommand::DisableHeightChange, dispmessage2(), ActionResult::getCode(), GameMap::getField(), CargoDialog::getMap(), ContainerBase::getMap(), isKeyPressed(), MoveUnitCommand::LimitVerticalDirection, mainScreenWidget, move(), ActionRegistry::MoveUnitCommand, NewGuiHost::pendingCommand, NewGuiHost::popIconHandler(), NewGuiHost::pushIconHandler(), GuiIconHandler::registerUserFunction(), repaintMap, CargoDialog::RunModal(), and ActionResult::successful().
| bool CargoGuiFunctions::Movement::checkForKey | ( | const SDL_KeyboardEvent * | key, | |
| int | modifier, | |||
| int | num | |||
| ) | [virtual] |
| Surface & CargoGuiFunctions::Movement::getImage | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [virtual] |
Implements GuiFunction.
Definition at line 2030 of file cargodialog.cpp.
References IconRepository::getIcon().
| ASCString CargoGuiFunctions::Movement::getName | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [virtual] |
1.5.1