Changeset 5093 in orxonox.OLD for trunk/src/lib/event
- Timestamp:
- Aug 21, 2005, 11:17:50 PM (19 years ago)
- Location:
- trunk/src/lib/event
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/event/event.h
r5039 r5093 2 2 * @file event.h 3 3 * an abstract event 4 * 5 * @todo remove HUGE class-overhead. This could also be a struct 4 6 */ 5 7 -
trunk/src/lib/event/event_handler.cc
r4873 r5093 89 89 this->keyMapper->loadKeyBindings(iniParser); 90 90 } 91 92 93 /**94 * set the state of the event handler95 * @param state: to which the event handler shall change96 */97 void EventHandler::setState(elState state)98 {99 this->state = state;100 }101 102 91 103 92 /** -
trunk/src/lib/event/event_handler.h
r5039 r5093 26 26 void init(IniParser* iniParser); 27 27 28 void setState(elState state); 28 /** @param state: to which the event handler shall change */ 29 inline void setState(elState state) { this->state = state; }; 30 /** @returns the current state */ 31 inline elState getState() const { return this->state; }; 29 32 30 33 void subscribe(EventListener* el, elState state, int eventType);
Note: See TracChangeset
for help on using the changeset viewer.