#include <spawnmine.h>
Inheritance diagram for SpawnMine:

Public Member Functions | |
| SpawnMine (GameMap *gamemap, const MapCoordinate &position, MineTypes mineType, int owner, int strength) | |
| ASCString | getDescription () const |
Protected Member Functions | |
| virtual GameActionID | getID () const |
| virtual ActionResult | runAction (const Context &context) |
| virtual ActionResult | undoAction (const Context &context) |
| virtual ActionResult | verify () |
| virtual void | readData (tnstream &stream) |
| virtual void | writeData (tnstream &stream) const |
Friends | |
| template<class Child> | |
| GameAction * | GameActionCreator (GameMap *map) |
Definition at line 31 of file spawnmine.h.
| SpawnMine::SpawnMine | ( | GameMap * | gamemap, | |
| const MapCoordinate & | position, | |||
| MineTypes | mineType, | |||
| int | owner, | |||
| int | strength | |||
| ) |
Definition at line 28 of file spawnmine.cpp.
| ASCString SpawnMine::getDescription | ( | ) | const [virtual] |
Implements GameAction.
Definition at line 40 of file spawnmine.cpp.
References MapCoordinate::toString().
| GameActionID SpawnMine::getID | ( | ) | const [protected, virtual] |
Implements GameAction.
Definition at line 78 of file spawnmine.cpp.
References ActionRegistry::SpawnMine.
| ActionResult SpawnMine::runAction | ( | const Context & | context | ) | [protected, virtual] |
Implements GameAction.
Definition at line 83 of file spawnmine.cpp.
References GameMap::getField(), GameAction::getMap(), GameMap::idManager, MapField::mines, MapField::putmine(), and GameMap::IDManager::unitnetworkid.
| ActionResult SpawnMine::undoAction | ( | const Context & | context | ) | [protected, virtual] |
Implements GameAction.
Definition at line 104 of file spawnmine.cpp.
References GameMap::getField(), GameAction::getMap(), GameMap::idManager, MapField::mines, and GameMap::IDManager::unitnetworkid.
| ActionResult SpawnMine::verify | ( | ) | [protected, virtual] |
| void SpawnMine::readData | ( | tnstream & | stream | ) | [protected, virtual] |
Implements GameAction.
Definition at line 47 of file spawnmine.cpp.
References mineDataVersion, MapCoordinate::read(), and tnstream::readInt().
| void SpawnMine::writeData | ( | tnstream & | stream | ) | const [protected, virtual] |
Implements GameAction.
Definition at line 65 of file spawnmine.cpp.
References mineDataVersion, MapCoordinate::write(), and tnstream::writeInt().
| GameAction* GameActionCreator | ( | GameMap * | map | ) | [friend] |
1.5.1