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

#include <gameevents.h>

Inheritance diagram for UnitDestroyed:
Inheritance graph

Public Member Functions

 UnitDestroyed ()
 UnitDestroyed (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

Detailed Description

Definition at line 199 of file gameevents.h.

Constructor & Destructor Documentation

UnitDestroyed::UnitDestroyed ( )

Definition at line 203 of file gameevents.h.

UnitDestroyed::UnitDestroyed ( int  unitID_)

Definition at line 204 of file gameevents.h.

References UnitTrigger::unitID.

Member Function Documentation

void UnitDestroyed::arm ( )
ASCString UnitDestroyed::getDetailledName ( ) const

Implements EventTrigger.

Definition at line 462 of file gameevents.cpp.

References UnitTrigger::getName().

EventTrigger::State UnitDestroyed::getState ( int  player)
ASCString UnitDestroyed::getTypeName ( ) const

Implements EventTrigger.

Definition at line 457 of file gameevents.cpp.

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