Changeset 4873 in orxonox.OLD for orxonox/trunk/src/lib
- Timestamp:
- Jul 15, 2005, 12:37:31 PM (19 years ago)
- Location:
- orxonox/trunk/src/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/event/event_def.h
r4836 r4873 1 1 /*! 2 \file event_def.h3 *some central definitions2 * @file event_def.h 3 * some central definitions 4 4 5 5 */ … … 34 34 EV_UNKNOWN, 35 35 36 EV_NUMBER ,36 EV_NUMBER = 500, //!< FIXME MSUT Resolve this EV_NUMBER should hold all the Events, also the count of other events 37 37 }; 38 38 -
orxonox/trunk/src/lib/event/event_handler.cc
r4872 r4873 24 24 #include "compiler.h" 25 25 #include "debug.h" 26 #include "class_list.h" 26 27 27 28 using namespace std; … … 42 43 for(int i = 0; i < ES_NUMBER; ++i) 43 44 { 44 for(int j = 0; j < SDLK_LAST; ++j)45 for(int j = 0; j < EV_NUMBER; ++j) 45 46 { 46 47 this->listeners[i][j] = NULL; … … 277 278 PRINT(4)("= Got Event nr %i, for state %i", ev.type, this->state); 278 279 280 //! @todo fix this debug code away */ 281 //////////////////////////////////////////////////////////////// 279 282 listener = this->listeners[this->state][ev.type]; 283 if (!ClassList::exists(listener, CL_EVENT_LISTENER) && listener != NULL) 284 { 285 ClassList::debug(3, CL_EVENT_LISTENER); 286 this->debug(); 287 printf("ERROR THIS EVENT DOES NOT EXIST\n"); 288 return; 289 } 290 //////////////////////////////////////////////////////////////// 280 291 if( listener != NULL) 281 292 { … … 304 315 if( this->listeners[i][j] != NULL) 305 316 { 306 PRINT(0)("Event %d of State %d subscribed to %s \n", j, i, this->listeners[i][j]->getName());317 PRINT(0)("Event %d of State %d subscribed to %s (%p)\n", j, i, this->listeners[i][j]->getName(), this->listeners[i][j]); 307 318 } 308 319 } -
orxonox/trunk/src/lib/lang/class_list.cc
r4872 r4873 211 211 * @param classID the class that should be displayed (if CL_NULL (default) all classes will be displayed) 212 212 */ 213 213 void ClassList::debug(unsigned int debugLevel, long classID) 214 214 { 215 215 if (debugLevel > 3) … … 244 244 while (enumBO) 245 245 { 246 PRINT(0)("| (class %s): NAME(%s)->%p \n", enumBO->getClassName(), enumBO->getName(), enumBO);246 PRINT(0)("| (class %s): NAME(%s)->%p ", enumBO->getClassName(), enumBO->getName(), enumBO); 247 247 if (debugLevel == 3) 248 248 enumBO->whatIs(); 249 else 250 { 251 PRINT(0)("\n"); 252 } 249 253 enumBO = iterator->nextElement(); 250 254 }
Note: See TracChangeset
for help on using the changeset viewer.