Reinforcements Class Reference

#include <gameevents.h>

Inheritance diagram for Reinforcements:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Reinforcements ()
void readData (tnstream &stream)
void writeData (tnstream &stream)
void execute (MapDisplayInterface *md)
void setup ()
ASCString getName () const

Friends

class ReinforcementSelector

Detailed Description

Definition at line 769 of file gameevents.h.


Constructor & Destructor Documentation

Reinforcements::Reinforcements (  )  [inline]

Definition at line 775 of file gameevents.h.


Member Function Documentation

void Reinforcements::readData ( tnstream stream  )  [virtual]

Implements EventAction.

Definition at line 1776 of file gameevents.cpp.

References MemoryStreamStorage::readfromstream(), tnstream::readInt(), and versionTest().

void Reinforcements::writeData ( tnstream stream  )  [virtual]

Implements EventAction.

Definition at line 1784 of file gameevents.cpp.

References tnstream::writeInt(), and MemoryStreamStorage::writetostream().

void Reinforcements::execute ( MapDisplayInterface md  )  [virtual]

Implements EventAction.

Definition at line 1843 of file gameevents.cpp.

References Building::addview(), GameMap::calculateAllObjects(), Building::chainbuildingtofield(), displaymessage(), evaluateviewcalculation(), EventAction::gamemap, GameMap::getField(), BuildingType::getFieldCoordinate(), ASCmsgException::getMessage(), GameMap::IDManager::getNewNetworkID(), Building::getPosition(), GameMap::idManager, mapChanged, Building::newFromStream(), Vehicle::newFromStream(), tnstream::reading, tnstream::readInt(), and Building::typ.

Referenced by setup().

void Reinforcements::setup (  )  [virtual]

Implements EventAction.

Definition at line 1792 of file gameevents.cpp.

References chooseString(), MemoryStreamStorage::clear(), execute(), EventAction::gamemap, ASC_PG_Dialog::RunModal(), and SelectFromMap::Show().

ASCString Reinforcements::getName (  )  const [inline, virtual]

Implements EventAction.

Definition at line 783 of file gameevents.h.


Friends And Related Function Documentation

friend class ReinforcementSelector [friend]

Definition at line 772 of file gameevents.h.


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