#include <sigc++/sigc++.h>
#include "loki/Singleton.h"
#include "typen.h"
#include "util/factory.h"
#include "mapdisplayinterface.h"
#include "util/factorywithnames.h"
Include dependency graph for gameeventsystem.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| class | EventTrigger |
| class | EventAction |
| class | Event |
| struct | Event::Delayedexecution |
| class | VariableLocker |
Typedefs | |
| typedef int | EventTriggerID |
| typedef int | EventActionID |
| typedef Loki::SingletonHolder< FactoryWithNames< EventTrigger, EventTriggerID > > | eventTriggerFactory |
| typedef Loki::SingletonHolder< FactoryWithNames< EventAction, EventActionID > > | eventActionFactory |
Enumerations | |
| enum | EventConnections { cconnection_destroy = 1, cconnection_conquer = 2, cconnection_lose = 4, cconnection_seen = 8, cconnection_areaentered_anyunit = 16, cconnection_areaentered_specificunit = 32 } |
Functions | |
| bool | checkevents (GameMap *gamemap, MapDisplayInterface *md) |
| void | checktimedevents (GameMap *gamemap, MapDisplayInterface *md) |
| void | eventReady (GameMap *gamemap) |
Definition in file gameeventsystem.h.
| typedef Loki::SingletonHolder< FactoryWithNames< EventAction , EventActionID > > eventActionFactory |
Definition at line 169 of file gameeventsystem.h.
| typedef int EventActionID |
Definition at line 55 of file gameeventsystem.h.
| typedef Loki::SingletonHolder< FactoryWithNames< EventTrigger, EventTriggerID > > eventTriggerFactory |
Definition at line 168 of file gameeventsystem.h.
| typedef int EventTriggerID |
Definition at line 54 of file gameeventsystem.h.
| enum EventConnections |
| cconnection_destroy | |
| cconnection_conquer | |
| cconnection_lose | |
| cconnection_seen | |
| cconnection_areaentered_anyunit | |
| cconnection_areaentered_specificunit |
Definition at line 40 of file gameeventsystem.h.
| bool checkevents | ( | GameMap * | gamemap, | |
| MapDisplayInterface * | md | |||
| ) |
Definition at line 64 of file gameeventsystem.cpp.
References GameMap::actplayer, GameMap::events, GameMap::player, and Player::queuedEvents.
Referenced by checkGameEvents(), checktimedevents(), mainloopidle(), and next_turn().
| void checktimedevents | ( | GameMap * | gamemap, | |
| MapDisplayInterface * | md | |||
| ) |
Definition at line 41 of file gameeventsystem.cpp.
References GameTime::abstime, checkevents(), GameMap::eventTimes, and GameMap::time.
Referenced by checkGameEvents(), mainloopidle(), next_turn(), and trunreplay::run().
| void eventReady | ( | GameMap * | gamemap | ) |
Definition at line 56 of file gameeventsystem.cpp.
References GameMap::player, and Player::queuedEvents.
Referenced by BuildingConquered::triggered(), BuildingSeen::triggered(), UnitTrigger::triggered(), EventTriggered::triggered(), SpecificUnitEntersPolygon::triggered(), AnyUnitEntersPolygon::triggered(), and ResourceTribute::triggered().
1.5.1