#include <gameevents.h>
Inheritance diagram for AddResources:

Public Member Functions | |
| AddResources () | |
| void | readData (tnstream &stream) |
| void | writeData (tnstream &stream) |
| void | execute (MapDisplayInterface *md) |
| void | setup () |
| ASCString | getName () const |
Definition at line 754 of file gameevents.h.
| AddResources::AddResources | ( | ) | [inline] |
Definition at line 758 of file gameevents.h.
| 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] |
1.5.1