ChangeView Class Reference

#include <changeview.h>

Inheritance diagram for ChangeView:

Inheritance graph
[legend]
List of all members.

Public Types

typedef map< MapCoordinate,
int > 
ViewState

Public Member Functions

 ChangeView (GameMap *gamemap, const ViewState &state)
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>
GameActionGameActionCreator (GameMap *map)

Detailed Description

Definition at line 30 of file changeview.h.


Member Typedef Documentation

typedef map<MapCoordinate,int> ChangeView::ViewState

Definition at line 32 of file changeview.h.


Constructor & Destructor Documentation

ChangeView::ChangeView ( GameMap gamemap,
const ViewState state 
)

Definition at line 27 of file changeview.cpp.


Member Function Documentation

ASCString ChangeView::getDescription (  )  const [virtual]

Implements GameAction.

Definition at line 34 of file changeview.cpp.

GameActionID ChangeView::getID (  )  const [protected, virtual]

Implements GameAction.

Definition at line 81 of file changeview.cpp.

References ActionRegistry::ChangeView.

ActionResult ChangeView::runAction ( const Context context  )  [protected, virtual]

Implements GameAction.

Definition at line 86 of file changeview.cpp.

References GameMap::getField(), and GameAction::getMap().

ActionResult ChangeView::undoAction ( const Context context  )  [protected, virtual]

Implements GameAction.

Definition at line 97 of file changeview.cpp.

References ASCString::format(), GameMap::getField(), and GameAction::getMap().

void ChangeView::readData ( tnstream stream  )  [protected, virtual]

Implements GameAction.

Definition at line 40 of file changeview.cpp.

References tnstream::readInt().

void ChangeView::writeData ( tnstream stream  )  const [protected, virtual]

Implements GameAction.

Definition at line 63 of file changeview.cpp.

References 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:46:30 2012 for Advanced Strategic Command by  doxygen 1.5.1