Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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 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

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 108 of file gameeventsystem.h.


Member Function Documentation

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

EventActionID EventAction::getActionID  )  [inline]
 

Definition at line 107 of file gameeventsystem.h.

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

void EventAction::setMap GameMap gamemap_  )  [inline]
 

Definition at line 106 of file gameeventsystem.h.

References gamemap.

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

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.

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.


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(), 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 Tue Jun 24 02:17:15 2008 for Advanced Strategic Command by  doxygen 1.4.2