SpawnMine Class Reference

#include <spawnmine.h>

Inheritance diagram for SpawnMine:

Inheritance graph
[legend]
List of all members.

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>
GameActionGameActionCreator (GameMap *map)

Detailed Description

Definition at line 31 of file spawnmine.h.


Constructor & Destructor Documentation

SpawnMine::SpawnMine ( GameMap gamemap,
const MapCoordinate position,
MineTypes  mineType,
int  owner,
int  strength 
)

Definition at line 28 of file spawnmine.cpp.


Member Function Documentation

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]

Definition at line 125 of file spawnmine.cpp.

References GameAction::getMap().

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().


Friends And Related Function Documentation

template<class Child>
GameAction* GameActionCreator ( GameMap map  )  [friend]

Definition at line 114 of file action.h.


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:47:34 2012 for Advanced Strategic Command by  doxygen 1.5.1