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

#include <gameevents.h>

Inheritance diagram for TurnPassed:
Inheritance graph
[legend]

Public Member Functions

 TurnPassed ()
 
 TurnPassed (int turn_, int move_)
 
virtual void readData (tnstream &stream)
 
virtual void writeData (tnstream &stream)
 
ASCString getTypeName () const
 
ASCString getDetailledName () const
 
void setup ()
 
void arm ()
 
- 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
GameMapgamemap
 
Eventevent
 

Detailed Description

Definition at line 145 of file gameevents.h.

Constructor & Destructor Documentation

TurnPassed::TurnPassed ( )
inline

Definition at line 151 of file gameevents.h.

TurnPassed::TurnPassed ( int  turn_,
int  move_ 
)
inline

Definition at line 152 of file gameevents.h.

Member Function Documentation

void TurnPassed::arm ( )
virtual

Reimplemented from EventTrigger.

Definition at line 92 of file gameevents.cpp.

References GameTime::comp(), GameMap::eventTimes, EventTrigger::gamemap, and GameTime::set().

ASCString TurnPassed::getDetailledName ( ) const
virtual

Implements EventTrigger.

Definition at line 126 of file gameevents.cpp.

References ASCString::format(), and getTypeName().

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

Implements EventTrigger.

Definition at line 121 of file gameevents.cpp.

Referenced by getDetailledName().

void TurnPassed::readData ( tnstream stream)
virtual

Implements EventTrigger.

Definition at line 100 of file gameevents.cpp.

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

void TurnPassed::setup ( void  )
virtual

Implements EventTrigger.

Definition at line 114 of file gameevents.cpp.

References editInt().

void TurnPassed::writeData ( tnstream stream)
virtual

Implements EventTrigger.

Definition at line 107 of file gameevents.cpp.

References tnstream::writeInt().


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