
Public Member Functions | |
| AttackGui () | |
| void | setupWeapons (AttackCommand *va) |
| void | eval (const MapCoordinate &mc, ContainerBase *subject) |
| checks evaluates the field on which the cursor resides | |
Protected Member Functions | |
| bool | available (const MapCoordinate &pos, ContainerBase *subject, int num) |
| void | execute (const MapCoordinate &pos, ContainerBase *subject, int num) |
| Surface & | getImage (const MapCoordinate &pos, ContainerBase *subject, int num) |
| ASCString | getName (const MapCoordinate &pos, ContainerBase *subject, int num) |
| bool | checkForKey (const SDL_KeyboardEvent *key, int modifier, int num) |
Definition at line 75 of file guifunctions.cpp.
| GuiFunctions::AttackGui::AttackGui | ( | ) | [inline] |
| bool GuiFunctions::AttackGui::available | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [protected, virtual] |
| void GuiFunctions::AttackGui::execute | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [protected, virtual] |
Implements GuiFunction.
Definition at line 160 of file guifunctions.cpp.
References actmap, attack(), GameMap::cleartemps(), createContext(), dispmessage2(), NewGuiHost::pendingCommand, NewGuiHost::popIconHandler(), repaintMap, ActionResult::successful(), and updateFieldInfo.
| Surface & GuiFunctions::AttackGui::getImage | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [protected, virtual] |
Implements GuiFunction.
Definition at line 186 of file guifunctions.cpp.
References cwbombb, cwcannonb, cwcruisemissileb, cwlargemissileb, cwmachinegunb, cwsmallmissileb, cwtorpedob, and IconRepository::getIcon().
| ASCString GuiFunctions::AttackGui::getName | ( | const MapCoordinate & | pos, | |
| ContainerBase * | subject, | |||
| int | num | |||
| ) | [protected, virtual] |
Implements GuiFunction.
Definition at line 212 of file guifunctions.cpp.
References actmap, tfight::av, AttackWeap::building, tfight::calc(), cwaffentypen, tfight::tavalues::damage, tfight::dv, ASCString::format(), AttackCommand::getAttacker(), GameMap::getField(), getFirstBit(), AttackWeap::object, NewGuiHost::pendingCommand, tfight::tavalues::strength, MapField::vehicle, AttackWeap::vehicle, MapCoordinate::x, and MapCoordinate::y.
| bool GuiFunctions::AttackGui::checkForKey | ( | const SDL_KeyboardEvent * | key, | |
| int | modifier, | |||
| int | num | |||
| ) | [protected, virtual] |
| void GuiFunctions::AttackGui::setupWeapons | ( | AttackCommand * | va | ) | [inline] |
Definition at line 95 of file guifunctions.cpp.
References NewGuiHost::pendingCommand.
Referenced by GuiFunctions::Attack::execute().
| void GuiFunctions::AttackGui::eval | ( | const MapCoordinate & | mc, | |
| ContainerBase * | subject | |||
| ) | [virtual] |
checks evaluates the field on which the cursor resides
Reimplemented from GuiIconHandler.
Definition at line 245 of file guifunctions.cpp.
References NewGuiHost::disableButtons(), NewGuiHost::getButton(), GuiIconHandler::host, and GuiButton::registerFunc().
1.5.1