Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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

Constructor & Destructor Documentation

AddResources::AddResources  )  [inline]
 

Definition at line 751 of file gameevents.h.


Member Function Documentation

void AddResources::execute MapDisplayInterface md  )  [virtual]
 

Implements EventAction.

Definition at line 1726 of file gameevents.cpp.

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

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

Implements EventAction.

Definition at line 759 of file gameevents.h.

void AddResources::readData tnstream stream  )  [virtual]
 

Implements EventAction.

Definition at line 1701 of file gameevents.cpp.

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

void AddResources::setup  )  [virtual]
 

Implements EventAction.

Definition at line 1717 of file gameevents.cpp.

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

void AddResources::writeData tnstream stream  )  [virtual]
 

Implements EventAction.

Definition at line 1709 of file gameevents.cpp.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:15:56 2008 for Advanced Strategic Command by  doxygen 1.4.2