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

gameeventsystem.h File Reference

Interface to the event handling of ASC. More...

#include <sigc++/sigc++.h>
#include "typen.h"
#include "libs/loki/Singleton.h"
#include "factory.h"
#include "mapdisplayinterface.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.

Typedefs

typedef int EventTriggerID
typedef int EventActionID
typedef Loki::SingletonHolder<
FactoryWithNames< EventTrigger,
EventTriggerID > > 
triggerFactory
typedef Loki::SingletonHolder<
FactoryWithNames< EventAction,
EventActionID > > 
actionFactory

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 (MapDisplayInterface *md)
void checktimedevents (MapDisplayInterface *md)
void eventReady ()


Detailed Description

Interface to the event handling of ASC.

Definition in file gameeventsystem.h.


Typedef Documentation

typedef Loki::SingletonHolder< FactoryWithNames< EventAction , EventActionID > > actionFactory
 

Definition at line 206 of file gameeventsystem.h.

typedef int EventActionID
 

Definition at line 54 of file gameeventsystem.h.

typedef int EventTriggerID
 

Definition at line 53 of file gameeventsystem.h.

typedef Loki::SingletonHolder< FactoryWithNames< EventTrigger, EventTriggerID > > triggerFactory
 

Definition at line 205 of file gameeventsystem.h.


Enumeration Type Documentation

enum EventConnections
 

Enumeration values:
cconnection_destroy 
cconnection_conquer 
cconnection_lose 
cconnection_seen 
cconnection_areaentered_anyunit 
cconnection_areaentered_specificunit 

Definition at line 39 of file gameeventsystem.h.


Function Documentation

bool checkevents MapDisplayInterface md  ) 
 

Definition at line 64 of file gameeventsystem.cpp.

References actmap, GameMap::actplayer, GameMap::events, GameMap::player, and Player::queuedEvents.

Referenced by checktimedevents(), and mainloopidle().

void checktimedevents MapDisplayInterface md  ) 
 

Definition at line 41 of file gameeventsystem.cpp.

References GameTime::abstime, actmap, checkevents(), GameMap::eventTimes, and GameMap::time.

Referenced by mainloopidle(), and trunreplay::run().

void eventReady  ) 
 

Definition at line 56 of file gameeventsystem.cpp.

References actmap, GameMap::player, and Player::queuedEvents.

Referenced by BuildingConquered::triggered(), BuildingSeen::triggered(), UnitTrigger::triggered(), EventTriggered::triggered(), SpecificUnitEntersPolygon::triggered(), AnyUnitEntersPolygon::triggered(), and ResourceTribute::triggered().


Generated on Tue Jun 24 01:44:17 2008 for Advanced Strategic Command by  doxygen 1.4.2