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

#include <gameevents.h>

Inheritance diagram for BuildingConquered:
Inheritance graph
[legend]

Public Member Functions

 BuildingConquered ()
 
 BuildingConquered (const MapCoordinate &position)
 
ASCString getTypeName () const
 
ASCString getDetailledName () const
 
void arm ()
 
void triggered ()
 
- Public Member Functions inherited from BuildingPositionTrigger
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...
 
void setMap (GameMap *gamemap_)
 
void setEvent (Event *ev)
 
EventTriggerID getTriggerID ()
 
virtual ~EventTrigger ()
 

Protected Member Functions

 BuildingConquered (EventTriggerID id)
 
virtual State getState (int player)
 
- Protected Member Functions inherited from BuildingPositionTrigger
 BuildingPositionTrigger (EventTriggerID id)
 
- Protected Member Functions inherited from PositionTrigger
 PositionTrigger (EventTriggerID id)
 
- 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 PositionTrigger
MapCoordinate pos
 
- Protected Attributes inherited from EventTrigger
GameMapgamemap
 
Eventevent
 

Detailed Description

Definition at line 257 of file gameevents.h.

Constructor & Destructor Documentation

BuildingConquered::BuildingConquered ( EventTriggerID  id)
inlineprotected

Definition at line 259 of file gameevents.h.

BuildingConquered::BuildingConquered ( )
inline

Definition at line 262 of file gameevents.h.

BuildingConquered::BuildingConquered ( const MapCoordinate position)
inline

Definition at line 263 of file gameevents.h.

References PositionTrigger::pos.

Member Function Documentation

void BuildingConquered::arm ( )
virtual
ASCString BuildingConquered::getDetailledName ( ) const
inlinevirtual

Implements EventTrigger.

Reimplemented in BuildingLost.

Definition at line 265 of file gameevents.h.

References BuildingPositionTrigger::getName().

EventTrigger::State BuildingConquered::getState ( int  player)
protectedvirtual
ASCString BuildingConquered::getTypeName ( ) const
inlinevirtual

Implements EventTrigger.

Reimplemented in BuildingLost.

Definition at line 264 of file gameevents.h.

void BuildingConquered::triggered ( )

Definition at line 186 of file gameevents.cpp.

References eventReady(), EventTrigger::gamemap, and EventTrigger::isFulfilled().

Referenced by arm(), and BuildingLost::arm().


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