ChangeBuildingDamage Class Reference

#include <gameevents.h>

Inheritance diagram for ChangeBuildingDamage:

Inheritance graph
[legend]
List of all members.

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

Detailed Description

Definition at line 570 of file gameevents.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Implements EventAction.

Definition at line 585 of file gameevents.h.


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