
Public Member Functions | |
| RepairUnit (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 240 of file cargodialog.cpp.
| CargoGuiFunctions::RepairUnit::RepairUnit | ( | CargoDialog & | masterParent | ) | [inline] |
Definition at line 244 of file cargodialog.cpp.
| bool CargoGuiFunctions::RepairUnit::available | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [virtual] |
Implements GuiFunction.
Definition at line 2335 of file cargodialog.cpp.
References RepairUnitCommand::availInternally(), ContainerBase::damage, and CargoDialog::getContainer().
| void CargoGuiFunctions::RepairUnit::execute | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [virtual] |
Implements GuiFunction.
Definition at line 2375 of file cargodialog.cpp.
References CargoDialog::cargoChanged(), createContext(), CargoDialog::getContainer(), ActionRegistry::RepairUnitCommand, and ActionResult::successful().
| bool CargoGuiFunctions::RepairUnit::checkForKey | ( | const SDL_KeyboardEvent * | key, | |
| int | modifier, | |||
| int | num | |||
| ) | [virtual] |
| Surface & CargoGuiFunctions::RepairUnit::getImage | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [virtual] |
Implements GuiFunction.
Definition at line 2357 of file cargodialog.cpp.
References IconRepository::getIcon().
| ASCString CargoGuiFunctions::RepairUnit::getName | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [virtual] |
Implements GuiFunction.
Definition at line 2362 of file cargodialog.cpp.
References CargoDialog::getContainer(), ContainerBase::getMaxRepair(), and Resources::toString().
1.5.1