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

#include <gameevents.h>

Inheritance diagram for BuildingPositionTrigger:
Inheritance graph
[legend]

Public Member Functions

ASCString getName () const
 
void setup ()
 
- Public Member Functions inherited from PositionTrigger
virtual void readData (tnstream &stream)
 
virtual void writeData (tnstream &stream)
 
- Public Member Functions inherited from EventTrigger
State state (int player)
 takes the inversion into account, which getState(int) does not More...
 
virtual ASCString getDetailledName () const =0
 
virtual ASCString getTypeName () const =0
 
virtual void arm ()
 
void setMap (GameMap *gamemap_)
 
void setEvent (Event *ev)
 
EventTriggerID getTriggerID ()
 
virtual ~EventTrigger ()
 

Protected Member Functions

 BuildingPositionTrigger (EventTriggerID id)
 
- Protected Member Functions inherited from PositionTrigger
 PositionTrigger (EventTriggerID id)
 
- Protected Member Functions inherited from EventTrigger
 EventTrigger (EventTriggerID id)
 
virtual State getState (int player)=0
 
bool isFulfilled ()
 

Additional Inherited Members

- Public Types inherited from EventTrigger
enum  State { unfulfilled, fulfilled, finally_fulfilled, finally_failed }
 
- Public Attributes inherited from EventTrigger
bool invert
 
- Protected Attributes inherited from PositionTrigger
MapCoordinate pos
 
- Protected Attributes inherited from EventTrigger
GameMapgamemap
 
Eventevent
 

Detailed Description

Definition at line 248 of file gameevents.h.

Constructor & Destructor Documentation

BuildingPositionTrigger::BuildingPositionTrigger ( EventTriggerID  id)
inlineprotected

Definition at line 250 of file gameevents.h.

Member Function Documentation

ASCString BuildingPositionTrigger::getName ( ) const
void BuildingPositionTrigger::setup ( void  )
virtual

Implements EventTrigger.

Definition at line 150 of file gameevents.cpp.

References getxy_building(), PositionTrigger::pos, MapCoordinate::x, and MapCoordinate::y.


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