
Public Member Functions | |
| PowerSwitch (bool state) | |
| bool | available (const MapCoordinate &pos, ContainerBase *subject, int num) |
| bool | checkForKey (const SDL_KeyboardEvent *key, int modifier, int num) |
| void | execute (const MapCoordinate &pos, ContainerBase *subject, int num) |
Definition at line 624 of file guifunctions.cpp.
| GuiFunctions::PowerSwitch::PowerSwitch | ( | bool | state | ) | [inline] |
Definition at line 630 of file guifunctions.cpp.
| bool GuiFunctions::PowerSwitch::available | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [inline, virtual] |
Implements GuiFunction.
Definition at line 632 of file guifunctions.cpp.
References actmap, PowerGenerationSwitchCommand::avail(), commandPending(), GameMap::getField(), and MapField::vehicle.
| bool GuiFunctions::PowerSwitch::checkForKey | ( | const SDL_KeyboardEvent * | key, | |
| int | modifier, | |||
| int | num | |||
| ) | [inline, virtual] |
Reimplemented from GuiFunction.
Reimplemented in GuiFunctions::PowerOff.
Definition at line 642 of file guifunctions.cpp.
| void GuiFunctions::PowerSwitch::execute | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [inline, virtual] |
Implements GuiFunction.
Definition at line 645 of file guifunctions.cpp.
References actmap, createContext(), displayActionError(), GameMap::getField(), ActionRegistry::PowerGenerationSwitchCommand, ActionResult::successful(), updateFieldInfo, and MapField::vehicle.
1.5.1