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

Public Member Functions | |
| ChangeBuildingDamage () | |
| ChangeBuildingDamage (const MapCoordinate &pos, int dam) | |
| void | readData (tnstream &stream) |
| void | writeData (tnstream &stream) |
| void | execute (MapDisplayInterface *md) |
| void | setup () |
| ASCString | getName () const |
Definition at line 570 of file gameevents.h.
| ChangeBuildingDamage::ChangeBuildingDamage | ( | ) | [inline] |
Definition at line 574 of file gameevents.h.
| ChangeBuildingDamage::ChangeBuildingDamage | ( | const MapCoordinate & | pos, | |
| int | dam | |||
| ) | [inline] |
Definition at line 576 of file gameevents.h.
| void ChangeBuildingDamage::readData | ( | tnstream & | stream | ) | [virtual] |
Implements EventAction.
Definition at line 1263 of file gameevents.cpp.
References MapCoordinate::read(), tnstream::readInt(), and versionTest().
| void ChangeBuildingDamage::writeData | ( | tnstream & | stream | ) | [virtual] |
Implements EventAction.
Definition at line 1270 of file gameevents.cpp.
References MapCoordinate::write(), and tnstream::writeInt().
| void ChangeBuildingDamage::execute | ( | MapDisplayInterface * | md | ) | [virtual] |
Implements EventAction.
Definition at line 1277 of file gameevents.cpp.
References MapField::building, ContainerBase::damage, EventAction::gamemap, GameMap::getField(), mapChanged, and MapDisplayInterface::updateDashboard().
| void ChangeBuildingDamage::setup | ( | ) | [virtual] |
Implements EventAction.
Definition at line 1296 of file gameevents.cpp.
References editInt(), getxy_building(), MapCoordinate::x, and MapCoordinate::y.
| ASCString ChangeBuildingDamage::getName | ( | ) | const [inline, virtual] |
1.5.1