Changeset 4287 in orxonox.OLD
- Timestamp:
- May 26, 2005, 12:22:19 AM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/defs/debug.h
r4094 r4287 56 56 // DEFINE MODULES 57 57 #define DEBUG_MODULE_ORXONOX 0 58 #define DEBUG_MODULE_WORLD 159 #define DEBUG_MODULE_PNODE 158 #define DEBUG_MODULE_WORLD 0 59 #define DEBUG_MODULE_PNODE 0 60 60 #define DEBUG_MODULE_WORLD_ENTITY 0 61 #define DEBUG_MODULE_COMMAND_NODE 461 #define DEBUG_MODULE_COMMAND_NODE 0 62 62 #define DEBUG_MODULE_GRAPHICS 0 63 63 #define DEBUG_MODULE_LOAD 2 64 64 65 #define DEBUG_MODULE_IMPORTER 365 #define DEBUG_MODULE_IMPORTER 0 66 66 #define DEBUG_MODULE_TRACK_MANAGER 0 67 67 #define DEBUG_MODULE_GARBAGE_COLLECTOR 0 68 #define DEBUG_MODULE_OBJECT_MANAGER 3 68 69 #define DEBUG_MODULE_LIGHT 0 69 70 #define DEBUG_MODULE_PLAYER 1 70 #define DEBUG_MODULE_WEAPON 371 #define DEBUG_MODULE_WEAPON 0 71 72 #define DEBUG_MODULE_MATH 0 72 73 #define DEBUG_MODULE_FONT 1 73 74 #define DEBUG_MODULE_ANIM 1 74 #define DEBUG_MODULE_PARTICLE 475 #define DEBUG_MODULE_PARTICLE 1 75 76 76 77 #define DEBUG_MODULE_NULL_PARENT 0 -
orxonox/trunk/src/story_entities/world.cc
r4261 r4287 40 40 #include "track_manager.h" 41 41 #include "garbage_collector.h" 42 #include "object_manager.h" 42 43 #include "animation_player.h" 43 44 #include "particle_engine.h" … … 54 55 55 56 #include "factory.h" 57 58 #include "projectile.h" 56 59 57 60 using namespace std; -
orxonox/trunk/src/util/object_manager.cc
r4286 r4287 77 77 BaseObject* ObjectManager::getFromDeadList(const char* className, int number) 78 78 {} 79 80 81 void ObjectManager::debug() 82 { 83 PRINT(0)("\n==========================| ObjectManager::debug() |===\n"); 84 PRINT(0)("= Number of registerable classes: %i\n", CL_NUMBER ); 85 PRINT(0)("= Currently cached objects: \n"); 86 for(int i = 0; i < CL_NUMBER; ++i) 87 { 88 if(this->managedObjectList[i] != NULL) 89 PRINT(0)("= o Class Nr. %i has cached %i object(s)\n", i, this->managedObjectList[i]->getSize()); 90 else 91 PRINT(0)("= o Class Nr. %i has cached 0 object(s)\n", i); 92 } 93 PRINT(0)("=======================================================\n"); 94 } -
orxonox/trunk/src/util/object_manager.h
r4286 r4287 44 44 BaseObject* getFromDeadList(const char* className, int number = 1); 45 45 46 void debug(); 47 46 48 private: 47 49 ObjectManager(void); -
orxonox/trunk/src/world_entities/player.cc
r4261 r4287 27 27 #include "list.h" 28 28 #include "stdincl.h" 29 30 #include "object_manager.h" 31 #include "projectile.h" 29 32 30 33 using namespace std; … … 59 62 this->weaponMan->addWeapon(wpRight, W_CONFIG2); 60 63 this->weaponMan->addWeapon(wpLeft, W_CONFIG2); 61 62 64 } 63 65 … … 104 106 this->weaponMan->addWeapon(wpRight, W_CONFIG2); 105 107 this->weaponMan->addWeapon(wpLeft, W_CONFIG2); 108 109 BaseObject* p = new Projectile(wpRight); 110 ObjectManager::getInstance()->cache(CL_PROJECTILE, 100, *p); 111 ObjectManager::getInstance()->debug(); 112 106 113 } 107 114 -
orxonox/trunk/src/world_entities/test_gun.cc
r4006 r4287 31 31 #include "list.h" 32 32 #include "animation3d.h" 33 33 34 34 35 using namespace std;
Note: See TracChangeset
for help on using the changeset viewer.