
Public Member Functions | |
| UnitTraining (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 205 of file cargodialog.cpp.
| CargoGuiFunctions::UnitTraining::UnitTraining | ( | CargoDialog & | masterParent | ) | [inline] |
Definition at line 209 of file cargodialog.cpp.
| bool CargoGuiFunctions::UnitTraining::available | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [virtual] |
Implements GuiFunction.
Definition at line 2223 of file cargodialog.cpp.
References GameMap::actplayer, TrainUnitCommand::avail(), Player::diplomacy, CargoDialog::getContainer(), ContainerBase::getMap(), ContainerBase::getOwner(), DiplomaticStateVector::isAllied(), and GameMap::player.
| void CargoGuiFunctions::UnitTraining::execute | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [virtual] |
Implements GuiFunction.
Definition at line 2257 of file cargodialog.cpp.
References CargoDialog::cargoChanged(), createContext(), displayActionError(), CargoDialog::getContainer(), ContainerBase::getMap(), ActionResult::successful(), and ActionRegistry::TrainUnitCommand.
| bool CargoGuiFunctions::UnitTraining::checkForKey | ( | const SDL_KeyboardEvent * | key, | |
| int | modifier, | |||
| int | num | |||
| ) | [virtual] |
| Surface & CargoGuiFunctions::UnitTraining::getImage | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [virtual] |
Implements GuiFunction.
Definition at line 2246 of file cargodialog.cpp.
References IconRepository::getIcon().
| ASCString CargoGuiFunctions::UnitTraining::getName | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [virtual] |
1.5.1