
Public Member Functions | |
| RecycleUnitCommandButton (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 289 of file cargodialog.cpp.
| CargoGuiFunctions::RecycleUnitCommandButton::RecycleUnitCommandButton | ( | CargoDialog & | masterParent | ) | [inline] |
Definition at line 294 of file cargodialog.cpp.
| bool CargoGuiFunctions::RecycleUnitCommandButton::available | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [virtual] |
Implements GuiFunction.
Definition at line 2797 of file cargodialog.cpp.
References GameMap::actplayer, RecycleUnitCommand::avail(), Player::diplomacy, CargoDialog::getContainer(), ContainerBase::getMap(), ContainerBase::getOwner(), DiplomaticStateVector::isAllied(), and GameMap::player.
| void CargoGuiFunctions::RecycleUnitCommandButton::execute | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [virtual] |
Implements GuiFunction.
Definition at line 2825 of file cargodialog.cpp.
References CargoDialog::cargoChanged(), choice_dlg(), createContext(), displayActionError(), CargoDialog::getContainer(), ContainerBase::getMap(), ActionRegistry::RecycleUnitCommand, and ActionResult::successful().
| bool CargoGuiFunctions::RecycleUnitCommandButton::checkForKey | ( | const SDL_KeyboardEvent * | key, | |
| int | modifier, | |||
| int | num | |||
| ) | [virtual] |
| Surface & CargoGuiFunctions::RecycleUnitCommandButton::getImage | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [virtual] |
Implements GuiFunction.
Definition at line 2849 of file cargodialog.cpp.
References IconRepository::getIcon().
| ASCString CargoGuiFunctions::RecycleUnitCommandButton::getName | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [virtual] |
Implements GuiFunction.
Definition at line 2859 of file cargodialog.cpp.
References CargoDialog::getContainer(), RecycleUnitCommand::getOutput(), Resources::name(), and ASCString::toString().
1.5.1