AddResources Class Reference

#include <gameevents.h>

Inheritance diagram for AddResources:

Inheritance graph
[legend]
List of all members.

Public Member Functions

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

Detailed Description

Definition at line 754 of file gameevents.h.


Constructor & Destructor Documentation

AddResources::AddResources (  )  [inline]

Definition at line 758 of file gameevents.h.


Member Function Documentation

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

Implements EventAction.

Definition at line 1743 of file gameevents.cpp.

References MapCoordinate::read(), Resources::read(), and versionTest().

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

Implements EventAction.

Definition at line 1751 of file gameevents.cpp.

References MapCoordinate::write(), Resources::write(), and tnstream::writeInt().

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

Implements EventAction.

Definition at line 1768 of file gameevents.cpp.

References MapField::building, EventAction::gamemap, GameMap::getField(), and Building::putResource().

void AddResources::setup (  )  [virtual]

Implements EventAction.

Definition at line 1759 of file gameevents.cpp.

References editInt(), Resources::energy, Resources::fuel, getxy_building(), Resources::material, minint, MapCoordinate::x, and MapCoordinate::y.

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

Implements EventAction.

Definition at line 766 of file gameevents.h.


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