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

#include <gameevents.h>

Inheritance diagram for PositionTrigger:
Inheritance graph
[legend]

Public Member Functions

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 setup ()=0
 
virtual void arm ()
 
void setMap (GameMap *gamemap_)
 
void setEvent (Event *ev)
 
EventTriggerID getTriggerID ()
 
virtual ~EventTrigger ()
 

Protected Member Functions

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

Protected Attributes

MapCoordinate pos
 
- Protected Attributes inherited from EventTrigger
GameMapgamemap
 
Eventevent
 

Additional Inherited Members

- Public Types inherited from EventTrigger
enum  State { unfulfilled, fulfilled, finally_fulfilled, finally_failed }
 
- Public Attributes inherited from EventTrigger
bool invert
 

Detailed Description

Definition at line 239 of file gameevents.h.

Constructor & Destructor Documentation

PositionTrigger::PositionTrigger ( EventTriggerID  id)
inlineprotected

Definition at line 242 of file gameevents.h.

Member Function Documentation

void PositionTrigger::readData ( tnstream stream)
virtual

Implements EventTrigger.

Definition at line 220 of file gameevents.cpp.

References pos, MapCoordinate::read(), and versionTest().

void PositionTrigger::writeData ( tnstream stream)
virtual

Implements EventTrigger.

Definition at line 227 of file gameevents.cpp.

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

Member Data Documentation

MapCoordinate PositionTrigger::pos
protected

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