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

#include <gameevents.h>

Inheritance diagram for UnitLost:
Inheritance graph
[legend]

Public Member Functions

 UnitLost ()
 
 UnitLost (int unitID_)
 
ASCString getTypeName () const
 
ASCString getDetailledName () const
 
void arm ()
 
- Public Member Functions inherited from UnitTrigger
 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...
 
void setMap (GameMap *gamemap_)
 
void setEvent (Event *ev)
 
EventTriggerID getTriggerID ()
 
virtual ~EventTrigger ()
 

Protected Member Functions

virtual State getState (int player)
 
- Protected Member Functions inherited from EventTrigger
 EventTrigger (EventTriggerID id)
 
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 UnitTrigger
int unitID
 
- Protected Attributes inherited from EventTrigger
GameMapgamemap
 
Eventevent
 

Detailed Description

Definition at line 177 of file gameevents.h.

Constructor & Destructor Documentation

UnitLost::UnitLost ( )
inline

Definition at line 181 of file gameevents.h.

UnitLost::UnitLost ( int  unitID_)
inline

Definition at line 182 of file gameevents.h.

References UnitTrigger::unitID.

Member Function Documentation

void UnitLost::arm ( )
virtual
ASCString UnitLost::getDetailledName ( ) const
virtual

Implements EventTrigger.

Definition at line 407 of file gameevents.cpp.

References UnitTrigger::getName().

EventTrigger::State UnitLost::getState ( int  player)
protectedvirtual
ASCString UnitLost::getTypeName ( ) const
virtual

Implements EventTrigger.

Definition at line 401 of file gameevents.cpp.


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