Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EventManager Class Reference

#include <EventManager.h>

Static Public Member Functions

static void Shutdown ()
 Releases all event handlers registered with the manager.
static void RegisterEventHandler (const Rocket::Core::String &handler_name, EventHandler *handler)
static void ProcessEvent (Rocket::Core::Event &event, const Rocket::Core::String &value)
static bool LoadWindow (const Rocket::Core::String &window_name)

Static Public Attributes

static Rocket::Core::String m_DirStr

Private Member Functions

 EventManager ()
 ~EventManager ()

Detailed Description

Author
Peter Curry

Definition at line 40 of file EventManager.h.

Constructor & Destructor Documentation

EventManager::EventManager ( )
private
EventManager::~EventManager ( )
private

Member Function Documentation

static bool EventManager::LoadWindow ( const Rocket::Core::String &  window_name)
static

Loads a window and binds the event handler for it.

Parameters
[in]window_nameThe name of the window to load.
static void EventManager::ProcessEvent ( Rocket::Core::Event &  event,
const Rocket::Core::String &  value 
)
static

Processes an event coming through from Rocket.

Parameters
[in]eventThe Rocket event that spawned the application event.
[in]valueThe application-specific event value.
static void EventManager::RegisterEventHandler ( const Rocket::Core::String &  handler_name,
EventHandler handler 
)
static

Registers a new event handler with the manager.

Parameters
[in]handler_nameThe name of the handler; this must be the same as the window it is handling events for.
[in]handlerThe event handler.
static void EventManager::Shutdown ( )
static

Releases all event handlers registered with the manager.

Member Data Documentation

Rocket::Core::String EventManager::m_DirStr
static

Definition at line 59 of file EventManager.h.


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