Advanced Strategic Command
Public Member Functions | List of all members
ChangeBuildingDamage Class Reference

#include <gameevents.h>

Inheritance diagram for ChangeBuildingDamage:
Inheritance graph
[legend]

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
 
- Public Member Functions inherited from EventAction
virtual ASCString getLocalizationString () const
 
virtual void setLocalizationString (const ASCString &s)
 
void setMap (GameMap *gamemap_)
 
EventActionID getActionID ()
 
virtual ~EventAction ()
 

Additional Inherited Members

- Protected Member Functions inherited from EventAction
 EventAction (EventActionID id)
 
- Protected Attributes inherited from EventAction
GameMapgamemap
 

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::execute ( MapDisplayInterface md)
virtual
ASCString ChangeBuildingDamage::getName ( ) const
inlinevirtual

Implements EventAction.

Definition at line 585 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::setup ( void  )
virtual

Implements EventAction.

Definition at line 1296 of file gameevents.cpp.

References editInt(), getxy_building(), MapCoordinate::x, and MapCoordinate::y.

void ChangeBuildingDamage::writeData ( tnstream stream)
virtual

Implements EventAction.

Definition at line 1270 of file gameevents.cpp.

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


The documentation for this class was generated from the following files: