#include <vehicleattack.h>
Inheritance diagram for VehicleAttackAction:

Public Member Functions | |
| VehicleAttackAction (GameMap *gamemap, int vehicleID, const MapCoordinate &target, int weapon=-1) | |
| ASCString | getDescription () const |
Protected Member Functions | |
| virtual GameActionID | getID () const |
| virtual ActionResult | runAction (const Context &context) |
| virtual ActionResult | undoAction (const Context &context) |
| virtual void | readData (tnstream &stream) |
| virtual void | writeData (tnstream &stream) const |
Friends | |
| template<class Child> | |
| GameAction * | GameActionCreator (GameMap *map) |
Definition at line 29 of file vehicleattack.h.
| VehicleAttackAction::VehicleAttackAction | ( | GameMap * | gamemap, | |
| int | vehicleID, | |||
| const MapCoordinate & | target, | |||
| int | weapon = -1 | |||
| ) |
Definition at line 37 of file vehicleattack.cpp.
| ASCString VehicleAttackAction::getDescription | ( | ) | const [virtual] |
Implements GameAction.
Definition at line 45 of file vehicleattack.cpp.
References Vehicle::getName(), UnitAction::getUnit(), and MapCoordinate::toString().
| GameActionID VehicleAttackAction::getID | ( | ) | const [protected, virtual] |
Implements GameAction.
Definition at line 75 of file vehicleattack.cpp.
References ActionRegistry::VehicleAttack.
| ActionResult VehicleAttackAction::runAction | ( | const Context & | context | ) | [protected, virtual] |
Implements GameAction.
Definition at line 80 of file vehicleattack.cpp.
References RecalculateAreaView::addView(), MapField::building, Context::display, MapDisplayInterface::displayActionCursor(), MapDisplayInterface::displayMap(), fieldvisiblenow(), GameMap::getField(), GameAction::getMap(), UnitAction::getUnit(), maxmalq, maxViewRange, MapDisplayInterface::removeActionCursor(), RecalculateAreaView::removeView(), MapDisplayInterface::showBattle(), MapField::vehicle, Context::viewingPlayer, MapCoordinate::x, and MapCoordinate::y.
| ActionResult VehicleAttackAction::undoAction | ( | const Context & | context | ) | [protected, virtual] |
Implements GameAction.
Definition at line 137 of file vehicleattack.cpp.
References Context::display, MapDisplayInterface::displayMap(), evaluateviewcalculation(), and GameAction::getMap().
| void VehicleAttackAction::readData | ( | tnstream & | stream | ) | [protected, virtual] |
Reimplemented from UnitAction.
Definition at line 54 of file vehicleattack.cpp.
References MapCoordinate::read(), UnitAction::readData(), and tnstream::readInt().
| void VehicleAttackAction::writeData | ( | tnstream & | stream | ) | const [protected, virtual] |
Reimplemented from UnitAction.
Definition at line 66 of file vehicleattack.cpp.
References MapCoordinate::write(), UnitAction::writeData(), and tnstream::writeInt().
| GameAction* GameActionCreator | ( | GameMap * | map | ) | [friend] |
1.5.1