Changeset 4354 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- May 28, 2005, 1:11:57 AM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/defs/debug.h
r4287 r4354 74 74 #define DEBUG_MODULE_ANIM 1 75 75 #define DEBUG_MODULE_PARTICLE 1 76 #define DEBUG_MODULE_EVENT 3 76 77 77 78 #define DEBUG_MODULE_NULL_PARENT 0 -
orxonox/trunk/src/util/event/event_handler.cc
r4352 r4354 167 167 } 168 168 169 170 void EventHandler::setState(elState state) 171 { 172 this->state = state; 173 } 174 175 void EventHandler::subscribeListener(EventListener* el, elState state, int eventType) 176 { 177 if( likely(this->listeners[state][eventType] == NULL)) 178 this->listeners[state][eventType] = el; 179 else 180 PRINTF(0)("Someone tried to subscribe to event %i @ state %i but this event has already been subscribed\n", eventType, state); 181 } 182 183 184 void EventHandler::unsubscribeListener(EventListener* el, elState state) 185 {} 186 187 void EventHandler::flush() 188 {} -
orxonox/trunk/src/util/event/event_handler.h
r4352 r4354 49 49 void setState(elState state); 50 50 51 void subscribeListener(EventListener* el, elState state );51 void subscribeListener(EventListener* el, elState state, int eventType); 52 52 void unsubscribeListener(EventListener* el, elState state); 53 void unsubscribeListener(int eventType, elState state); 53 54 void flush(); 54 55 … … 65 66 KeyBindings* keyAliases; 66 67 EventListener*** listeners; //!< a list of registered listeners 67 68 elState state; 69 68 70 }; 69 71
Note: See TracChangeset
for help on using the changeset viewer.