#include <removemine.h>
Inheritance diagram for RemoveMine:

Public Member Functions | |
| RemoveMine (GameMap *gamemap, const MapCoordinate &position, int mineID=0) | |
| mineID = 0 will remove all mines on that field | |
| ASCString | getDescription () const |
| ~RemoveMine () | |
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 30 of file removemine.h.
| RemoveMine::RemoveMine | ( | GameMap * | gamemap, | |
| const MapCoordinate & | position, | |||
| int | mineID = 0 | |||
| ) |
| RemoveMine::~RemoveMine | ( | ) |
Definition at line 146 of file removemine.cpp.
| ASCString RemoveMine::getDescription | ( | ) | const [virtual] |
Implements GameAction.
Definition at line 35 of file removemine.cpp.
References ASCString::toString(), and MapCoordinate::toString().
| GameActionID RemoveMine::getID | ( | ) | const [protected, virtual] |
Implements GameAction.
Definition at line 77 of file removemine.cpp.
References ActionRegistry::RemoveMine.
| ActionResult RemoveMine::runAction | ( | const Context & | context | ) | [protected, virtual] |
Implements GameAction.
Definition at line 82 of file removemine.cpp.
References GameMap::getField(), GameAction::getMap(), MapField::mines, and tnstream::writing.
| ActionResult RemoveMine::undoAction | ( | const Context & | context | ) | [protected, virtual] |
Implements GameAction.
Definition at line 115 of file removemine.cpp.
References GameMap::getField(), GameAction::getMap(), MapField::mines, Mine::newFromStream(), and tnstream::reading.
| ActionResult RemoveMine::verify | ( | ) | [protected, virtual] |
Definition at line 141 of file removemine.cpp.
| void RemoveMine::readData | ( | tnstream & | stream | ) | [protected, virtual] |
Implements GameAction.
Definition at line 42 of file removemine.cpp.
References MapCoordinate::read(), MemoryStreamStorage::readfromstream(), and tnstream::readInt().
| void RemoveMine::writeData | ( | tnstream & | stream | ) | const [protected, virtual] |
Implements GameAction.
Definition at line 61 of file removemine.cpp.
References MapCoordinate::write(), tnstream::writeInt(), and MemoryStreamStorage::writetostream().
| GameAction* GameActionCreator | ( | GameMap * | map | ) | [friend] |
1.5.1