event_map Class Reference

#include <event_map.hpp>

Inheritance diagram for event_map:

Inheritance graph
[legend]
Collaboration diagram for event_map:

Collaboration graph
[legend]

List of all members.


Detailed Description

Maps SDL events to internal game events.

Definition at line 72 of file event_map.hpp.


Public Member Functions

 event_map (const string &fname)
bool handle_event (const SDL_Event &e, scenegraph::simulation *sim)
 ~event_map ()

Static Public Member Functions

static T * global_instance ()

Private Member Functions

void load_events (const string &fname)
void load_keyboard_events (gsgl::data::config_record &)

Private Attributes

data::dictionary
< data::dictionary< int, int >
, int > 
key_events

Constructor & Destructor Documentation

event_map ( const string fname  ) 

Definition at line 233 of file event_map.cpp.

References event_map::load_events().

~event_map (  ) 

Definition at line 240 of file event_map.cpp.


Member Function Documentation

static T* global_instance (  )  [inline, static, inherited]

bool handle_event ( const SDL_Event &  e,
scenegraph::simulation sim 
)

void load_events ( const string fname  )  [private]

void load_keyboard_events ( gsgl::data::config_record keyboard_conf  )  [private]


Member Data Documentation

data::dictionary<data::dictionary< int, int >, int> key_events [private]

Definition at line 76 of file event_map.hpp.

Referenced by event_map::handle_event(), and event_map::load_keyboard_events().


The documentation for this class was generated from the following files:

Generated on Sat Mar 1 13:50:07 2008 for Periapsis Project by  doxygen 1.5.5