EventAction Class Reference

#include <gameeventsystem.h>

Inheritance diagram for EventAction:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual void readData (tnstream &stream)=0
virtual void writeData (tnstream &stream)=0
virtual ASCString getName () const=0
virtual ASCString getLocalizationString () const
virtual void setLocalizationString (const ASCString &s)
virtual void execute (MapDisplayInterface *md)=0
virtual void setup ()=0
void setMap (GameMap *gamemap_)
EventActionID getActionID ()
virtual ~EventAction ()

Protected Member Functions

 EventAction (EventActionID id)

Protected Attributes

GameMapgamemap

Detailed Description

Definition at line 93 of file gameeventsystem.h.


Constructor & Destructor Documentation

EventAction::EventAction ( EventActionID  id  )  [inline, protected]

Definition at line 97 of file gameeventsystem.h.

virtual EventAction::~EventAction (  )  [inline, virtual]

Definition at line 111 of file gameeventsystem.h.


Member Function Documentation

virtual void EventAction::readData ( tnstream stream  )  [pure virtual]

Implemented in ChangePlayerState, Action_Nothing, WindChange, ChangeGameParameter, DisplayMessage, WeatherChange, MapChange, AddObject, MapChangeCompleted, ChangeBuildingDamage, NextMap, LoseMap, DisplayEllipse, RemoveEllipse, RemoveAllObjects, ChangeBuildingOwner, DisplayImmediateMessage, AddProductionCapability, ChangeDiplomaticStatus, SetViewSharing, AddResources, and Reinforcements.

Referenced by Event::read().

virtual void EventAction::writeData ( tnstream stream  )  [pure virtual]

Implemented in ChangePlayerState, Action_Nothing, WindChange, ChangeGameParameter, DisplayMessage, WeatherChange, MapChange, AddObject, MapChangeCompleted, ChangeBuildingDamage, NextMap, LoseMap, DisplayEllipse, RemoveEllipse, RemoveAllObjects, ChangeBuildingOwner, DisplayImmediateMessage, AddProductionCapability, ChangeDiplomaticStatus, SetViewSharing, AddResources, and Reinforcements.

Referenced by Event::write().

virtual ASCString EventAction::getName (  )  const [pure virtual]

Implemented in ChangePlayerState, Action_Nothing, WindChange, ChangeGameParameter, DisplayMessage, WeatherChange, MapChange, AddObject, MapChangeCompleted, ChangeBuildingDamage, NextMap, LoseMap, DisplayEllipse, RemoveEllipse, RemoveAllObjects, ChangeBuildingOwner, DisplayImmediateMessage, AddProductionCapability, ChangeDiplomaticStatus, SetViewSharing, AddResources, and Reinforcements.

Referenced by EventEditor::EventEditor(), and EventTriggered::getDetailledName().

virtual ASCString EventAction::getLocalizationString (  )  const [inline, virtual]

Reimplemented in DisplayImmediateMessage.

Definition at line 104 of file gameeventsystem.h.

virtual void EventAction::setLocalizationString ( const ASCString s  )  [inline, virtual]

Reimplemented in DisplayImmediateMessage.

Definition at line 105 of file gameeventsystem.h.

virtual void EventAction::execute ( MapDisplayInterface md  )  [pure virtual]

Implemented in ChangePlayerState, Action_Nothing, WindChange, ChangeGameParameter, DisplayMessage, MapModificationEvent, MapChangeCompleted, ChangeBuildingDamage, NextMap, LoseMap, DisplayEllipse, RemoveEllipse, ChangeBuildingOwner, DisplayImmediateMessage, AddProductionCapability, ChangeDiplomaticStatus, SetViewSharing, AddResources, and Reinforcements.

Referenced by Event::execute().

virtual void EventAction::setup (  )  [pure virtual]

Implemented in ChangePlayerState, Action_Nothing, WindChange, ChangeGameParameter, DisplayMessage, WeatherChange, MapChange, AddObject, MapChangeCompleted, ChangeBuildingDamage, NextMap, LoseMap, DisplayEllipse, RemoveEllipse, RemoveAllObjects, ChangeBuildingOwner, DisplayImmediateMessage, AddProductionCapability, ChangeDiplomaticStatus, SetViewSharing, AddResources, and Reinforcements.

void EventAction::setMap ( GameMap gamemap_  )  [inline]

Definition at line 109 of file gameeventsystem.h.

References gamemap.

Referenced by readOldEvent(), and Event::spawnAction().

EventActionID EventAction::getActionID (  )  [inline]

Definition at line 110 of file gameeventsystem.h.

Referenced by Event::write().


Member Data Documentation

GameMap* EventAction::gamemap [protected]

Definition at line 96 of file gameeventsystem.h.

Referenced by Reinforcements::execute(), AddResources::execute(), SetViewSharing::execute(), ChangePlayerState::execute(), ChangeDiplomaticStatus::execute(), AddProductionCapability::execute(), DisplayImmediateMessage::execute(), ChangeBuildingOwner::execute(), LoseMap::execute(), NextMap::execute(), ChangeBuildingDamage::execute(), MapChangeCompleted::execute(), MapModificationEvent::execute(), DisplayMessage::execute(), ChangeGameParameter::execute(), WindChange::execute(), RemoveAllObjects::fieldOperator(), AddObject::fieldOperator(), MapChange::fieldOperator(), WeatherChange::fieldOperator(), setMap(), Reinforcements::setup(), and DisplayImmediateMessage::setup().


The documentation for this class was generated from the following file:
Generated on Mon May 21 01:46:42 2012 for Advanced Strategic Command by  doxygen 1.5.1