Changeset 4389 in orxonox.OLD for orxonox/trunk
- Timestamp:
- May 30, 2005, 12:12:03 AM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/defs/debug.h
r4381 r4389 66 66 #define DEBUG_MODULE_TRACK_MANAGER 0 67 67 #define DEBUG_MODULE_GARBAGE_COLLECTOR 0 68 #define DEBUG_MODULE_OBJECT_MANAGER 368 #define DEBUG_MODULE_OBJECT_MANAGER 0 69 69 #define DEBUG_MODULE_LIGHT 0 70 70 #define DEBUG_MODULE_PLAYER 1 -
orxonox/trunk/src/util/event/event_handler.cc
r4388 r4389 198 198 PRINT(0)("\n==========================| EventHandler::test () |===\n"); 199 199 PRINT(0)("Eventhandler init successfuly\n"); 200 KeyMapper km ();200 KeyMapper km; 201 201 PRINT(0)("KeyMapper loaded\n"); 202 //km.loadKeyBindings(); 203 km.debug(); 202 204 203 205 PRINT(0)("=======================================================\n"); -
orxonox/trunk/src/util/event/key_mapper.cc
r4388 r4389 115 115 { 116 116 case 0: 117 PRINTF( 4)("Key binding %d(%s) set to %s\n", index[1], SDLKToKeyname( index[1]), namebuf);117 PRINTF(0)("Key binding %d(%s) set to %s\n", index[1], SDLKToKeyname( index[1]), namebuf); 118 118 strcpy (this->keyAliases->keys[index[1]], namebuf); 119 119 break; 120 120 case 1: 121 PRINTF( 4)("Button binding %d(%s) set to %s\n", index[1], SDLBToButtonname( index[1]), namebuf);121 PRINTF(0)("Button binding %d(%s) set to %s\n", index[1], SDLBToButtonname( index[1]), namebuf); 122 122 strcpy (this->keyAliases->buttons[index[1]], namebuf); 123 123 break; … … 144 144 { 145 145 case 0: 146 PRINTF( 4)("Key binding %d(%s) set to %s\n", index[1], SDLKToKeyname( index[1]), namebuf);146 PRINTF(0)("Key binding %d(%s) set to %s\n", index[1], SDLKToKeyname( index[1]), namebuf); 147 147 strcpy (keyAliases->keys[index[1]], namebuf); 148 148 break; 149 149 case 1: 150 PRINTF( 4)("Button binding %d(%s) set to %s\n", index[1], SDLBToButtonname( index[1]), namebuf);150 PRINTF(0)("Button binding %d(%s) set to %s\n", index[1], SDLBToButtonname( index[1]), namebuf); 151 151 strcpy (keyAliases->buttons[index[1]], namebuf); 152 152 break; … … 178 178 return coord; 179 179 } 180 181 182 void KeyMapper::debug() 183 { 184 //PRINT(0)("\n==========================| KeyMapper::debug() |===\n"); 185 PRINT(0)("Command 'up' got SDL key-ref nr %i \n", (this->nameToIndex("UP"))[0]); 186 PRINT(0)("Command 'down' got SDL key-ref nr %i \n", (this->nameToIndex("DOWN"))[0]); 187 PRINT(0)("Command 'right' got SDL key-ref nr %i \n", (this->nameToIndex("RIGHT"))[0]); 188 PRINT(0)("Command 'left' got SDL key-ref nr %i \n", (this->nameToIndex("LEFT"))[0]); 189 190 //PRINT(0)("=======================================================\n"); 191 } -
orxonox/trunk/src/util/event/key_mapper.h
r4387 r4389 33 33 virtual ~KeyMapper(); 34 34 35 void loadKeyBindings(const char* fileName); 35 void loadKeyBindings(const char* fileName = "~/.orxonox/orxonox.conf"); 36 37 void debug(); 36 38 37 39 private: -
orxonox/trunk/src/util/garbage_collector.cc
r4322 r4389 147 147 PRINTF(3)("=============================\n"); 148 148 149 ObjectManager::getInstance()->debug();149 //ObjectManager::getInstance()->debug(); 150 150 151 151 /* reset time to count again up to this->delay */ -
orxonox/trunk/src/world_entities/player.cc
r4289 r4389 28 28 #include "stdincl.h" 29 29 30 #include "object_manager.h" 30 31 31 #include "projectile.h" 32 32 -
orxonox/trunk/src/world_entities/test_gun.cc
r4382 r4389 92 92 Projectile* p = new TestBullet(this); 93 93 ObjectManager::getInstance()->cache(CL_TEST_BULLET, 100, p); 94 ObjectManager::getInstance()->debug();94 //ObjectManager::getInstance()->debug(); 95 95 } 96 96
Note: See TracChangeset
for help on using the changeset viewer.