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

#include <gameevents.h>

Inheritance diagram for EventTriggered:
Inheritance graph

Public Member Functions

 EventTriggered (int eventID_=-1)
void setEventID (int eventID_)
virtual void readData (tnstream &stream)
virtual void writeData (tnstream &stream)
ASCString getTypeName () const
ASCString getDetailledName () const
void setup ()
void arm ()
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 EventTrigger

Detailed Description

Definition at line 303 of file gameevents.h.

Constructor & Destructor Documentation

EventTriggered::EventTriggered ( int  eventID_ = -1)

Definition at line 309 of file gameevents.h.

Member Function Documentation

void EventTriggered::arm ( )

Reimplemented from EventTrigger.

Definition at line 547 of file gameevents.cpp.

References Event::executed, and triggered().

ASCString EventTriggered::getDetailledName ( ) const

Implements EventTrigger.

Definition at line 513 of file gameevents.cpp.

References Event::action, Event::description, EventAction::getName(), and getTypeName().

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

Implements EventTrigger.

Definition at line 508 of file gameevents.cpp.

Referenced by getDetailledName().

void EventTriggered::readData ( tnstream stream)

Implements EventTrigger.

Definition at line 485 of file gameevents.cpp.

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

void EventTriggered::setEventID ( int  eventID_)

Definition at line 310 of file gameevents.h.

void EventTriggered::setup ( void  )

Implements EventTrigger.

Definition at line 528 of file gameevents.cpp.

References chooseString(), GameMap::events, and EventTrigger::gamemap.

void EventTriggered::triggered ( )

Definition at line 554 of file gameevents.cpp.

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

Referenced by arm().

void EventTriggered::writeData ( tnstream stream)

Implements EventTrigger.

Definition at line 491 of file gameevents.cpp.

References tnstream::writeInt().

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