#include <gameeventsystem.h>
Inheritance diagram for EventAction:

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 | |
| GameMap * | gamemap |
Definition at line 93 of file gameeventsystem.h.
| 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.
| 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] |
| virtual void EventAction::setLocalizationString | ( | const ASCString & | s | ) | [inline, virtual] |
| 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] |
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().
1.5.1