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

#include <gameevents.h>

Inheritance diagram for RemoveAllObjects:
Inheritance graph
[legend]

Public Member Functions

 RemoveAllObjects ()
 
void readData (tnstream &stream)
 
void writeData (tnstream &stream)
 
void setup ()
 
ASCString getName () const
 
- Public Member Functions inherited from MapModificationEvent
void execute (MapDisplayInterface *md)
 
- Public Member Functions inherited from EventAction
virtual ASCString getLocalizationString () const
 
virtual void setLocalizationString (const ASCString &s)
 
void setMap (GameMap *gamemap_)
 
EventActionID getActionID ()
 
virtual ~EventAction ()
 
- Public Member Functions inherited from FieldAddressing
void setField (const MapCoordinate &pos)
 
void setPolygon (const Poly_gon &poly_gon)
 
void setGlobal ()
 
virtual ~FieldAddressing ()
 

Protected Member Functions

void fieldOperator (const MapCoordinate &mc)
 
- Protected Member Functions inherited from MapModificationEvent
 MapModificationEvent (EventActionID id)
 
- Protected Member Functions inherited from EventAction
 EventAction (EventActionID id)
 
- Protected Member Functions inherited from FieldAddressing
 FieldAddressing (GameMap *&gamemap)
 
void readMapModificationData (tnstream &stream)
 
void writeMapModificationData (tnstream &stream)
 
void operate ()
 
void setpointabs (int x, int y)
 
void setup ()
 
- Protected Member Functions inherited from PolygonPainterSquareCoordinate
virtual void setpoint (int x, int y)
 
void setspecificpoint (int x, int y)
 
bool paintPolygon (const Poly_gon &poly)
 
- Protected Member Functions inherited from PolygonPainter< Poly_gon >
virtual void sortpolygon (Poly_gon &a)
 
virtual void painttriangle (typename Poly_gon::Point p[])
 
virtual void painthorizline (int x1, int x2, int y)
 
virtual void paintline (int x1, int y1, int x2, int y2)
 
virtual int getpolydir (const Poly_gon &a)
 
virtual double getsegmentdir (int dx, int dy)
 
virtual bool checkpolygon (const Poly_gon &poly)
 returns true if polygon correct More...
 
virtual bool checkline (typename Poly_gon::Point a, typename Poly_gon::Point b, typename Poly_gon::Point d, typename Poly_gon::Point e)
 returns true if lines a-b and c-d don't intersect More...
 
virtual ~PolygonPainter ()
 
bool paintPolygon (const Poly_gon &poly)
 

Additional Inherited Members

- Public Types inherited from FieldAddressing
typedef vector< MapCoordinateFields
 
typedef vector< Poly_gonPolygons
 
- Protected Types inherited from FieldAddressing
enum  AddressingMode { none, singleField, poly, global }
 
- Protected Attributes inherited from EventAction
GameMapgamemap
 
- Protected Attributes inherited from FieldAddressing
AddressingMode addressingMode
 
Fields fields
 
Polygons polygons
 

Detailed Description

Definition at line 654 of file gameevents.h.

Constructor & Destructor Documentation

RemoveAllObjects::RemoveAllObjects ( )
inline

Definition at line 658 of file gameevents.h.

Member Function Documentation

void RemoveAllObjects::fieldOperator ( const MapCoordinate mc)
protectedvirtual
ASCString RemoveAllObjects::getName ( ) const
inlinevirtual

Implements EventAction.

Definition at line 663 of file gameevents.h.

void RemoveAllObjects::readData ( tnstream stream)
virtual

Implements EventAction.

Definition at line 1215 of file gameevents.cpp.

References FieldAddressing::readMapModificationData(), and versionTest().

void RemoveAllObjects::setup ( void  )
virtual

Implements EventAction.

Definition at line 1238 of file gameevents.cpp.

References FieldAddressing::setup().

void RemoveAllObjects::writeData ( tnstream stream)
virtual

Implements EventAction.

Definition at line 1222 of file gameevents.cpp.

References tnstream::writeInt(), and FieldAddressing::writeMapModificationData().


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