Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/util/event/event_handler.h @ 4388

Last change on this file since 4388 was 4388, checked in by patrick, 19 years ago

orxonox/trunk: running first pre-tests with key-mapping

File size: 846 bytes
RevLine 
[4329]1/*!
[4346]2    \file event_handler.h
3    \brief Definition of the EventHandler
[4329]4   
5*/
6
[4346]7#ifndef _EVENT_HANDLER_H
8#define _EVENT_HANDLER_H
[4329]9
10#include "base_object.h"
[4352]11#include "event_def.h"
[4329]12
[4346]13class EventListener;
[4329]14
[4352]15
[4346]16//! The one Event Handler from Orxonox
17class EventHandler : public BaseObject {
18
[4329]19 public:
[4346]20  static EventHandler* getInstance(void);
21  virtual ~EventHandler(void);
[4329]22
[4350]23  void setState(elState state);
24
[4354]25  void subscribeListener(EventListener* el, elState state, int eventType);
26  void unsubscribeListener(int eventType, elState state);
[4364]27  void flush(elState state);
[4346]28
29  void tick(float t);
[4352]30  void process();
[4346]31
[4388]32  void test();
33
[4329]34 private:
[4346]35  EventHandler(void);
[4368]36 
[4352]37
[4368]38 private:
[4346]39  static EventHandler* singletonRef;
[4352]40  EventListener*** listeners;                         //!< a list of registered listeners
[4354]41  elState state;
42
[4329]43};
44
[4346]45#endif /* _EVENT_HANDLER_H */
Note: See TracBrowser for help on using the repository browser.