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

#include <gameevents.h>

Inheritance diagram for UnitTrigger:
Inheritance graph
[legend]

Public Member Functions

 UnitTrigger (EventTriggerID id)
 
virtual void readData (tnstream &stream)
 
virtual void writeData (tnstream &stream)
 
ASCString getName () const
 
void setup ()
 
void triggered ()
 
- 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 Attributes

int unitID
 
- 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
 
- Protected Member Functions inherited from EventTrigger
 EventTrigger (EventTriggerID id)
 
virtual State getState (int player)=0
 
bool isFulfilled ()
 

Detailed Description

Definition at line 163 of file gameevents.h.

Constructor & Destructor Documentation

UnitTrigger::UnitTrigger ( EventTriggerID  id)
inline

Definition at line 167 of file gameevents.h.

Member Function Documentation

ASCString UnitTrigger::getName ( ) const
void UnitTrigger::readData ( tnstream stream)
virtual

Implements EventTrigger.

Definition at line 343 of file gameevents.cpp.

References tnstream::readInt(), unitID, and versionTest().

void UnitTrigger::setup ( void  )
virtual

Implements EventTrigger.

Definition at line 368 of file gameevents.cpp.

References selectunit(), and unitID.

void UnitTrigger::triggered ( )
void UnitTrigger::writeData ( tnstream stream)
virtual

Implements EventTrigger.

Definition at line 350 of file gameevents.cpp.

References unitID, and tnstream::writeInt().

Member Data Documentation

int UnitTrigger::unitID
protected

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