Changeset 8148 in orxonox.OLD for trunk/src/lib/event/event_handler.h
- Timestamp:
- Jun 5, 2006, 12:46:02 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/event/event_handler.h
r7919 r8148 19 19 20 20 //! The one Event Handler from Orxonox 21 class EventHandler : public BaseObject { 21 class EventHandler : public BaseObject 22 { 22 23 23 24 public: 24 25 virtual ~EventHandler(); 25 26 /** @returns a Pointer to the only object of this Class */ … … 29 30 void setState(elState state); 30 31 /** @returns the current state */ 31 32 inline elState getState() const { return this->state; }; 32 33 33 34 void pushState(elState state); … … 52 53 void debug() const; 53 54 54 private: 55 static const std::string& ELStateToString(elState state); 56 static elState StringToELState(const std::string& stateName); 57 58 private: 55 59 EventHandler(); 56 60 57 61 bool findListener(std::vector<EventListener*>::iterator* it, elState state, int eventType, EventListener* listener); 58 62 59 private: 63 public: 64 static const std::string stateNames[]; 65 66 private: 60 67 static EventHandler* singletonRef; //!< the singleton reference 61 68
Note: See TracChangeset
for help on using the changeset viewer.