Changeset 4546 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Jun 7, 2005, 11:50:01 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/collision_detection/cd_engine.cc
r4519 r4546 17 17 18 18 #include "cd_engine.h" 19 #include "obb_tree.h" 20 #include "debug.h" 19 21 20 22 using namespace std; … … 44 46 45 47 } 48 49 50 void CDEngine::debug() 51 { 52 PRINT(0)("\n=============================| CDEngine::debug() |===\n"); 53 PRINT(0)("= CDEngine: Spawning Tree Start\n"); 54 55 PRINT(0)("= CDEngine: Spawning Tree: Finished\n"); 56 PRINT(0)("=======================================================\n"); 57 58 } -
orxonox/trunk/src/lib/collision_detection/cd_engine.h
r4541 r4546 34 34 virtual ~CDEngine(void); 35 35 /** \returns a Pointer to the only object of this Class */ 36 inline static CDEngine* getInstance(void) { if (!singletonRef) singletonRef = new CDEngine(); return singletonRef; };36 static CDEngine* getInstance(void) { if (!singletonRef) singletonRef = new CDEngine(); return singletonRef; } 37 37 void init(); 38 38 … … 47 47 48 48 void checkCollisions(); 49 50 void debug(); 49 51 50 52 private: -
orxonox/trunk/src/lib/collision_detection/obb_tree.cc
r4542 r4546 18 18 #include "obb_tree.h" 19 19 #include "obb.h" 20 #include "debug.h" 20 21 21 22 using namespace std; … … 66 67 void OBBTree::drawBVBlended(int currentDepth, const int depth) const 67 68 {} 69 70 71 void OBBTree::debug() 72 { 73 PRINT(0)("\n==============================| OBBTree::debug() |===\n"); 74 PRINT(0)("= Spawning Tree: Start\n"); 75 this->spawnBVTree(1); 76 PRINT(0)("= Spawning Tree: Finished\n"); 77 PRINT(0)("=======================================================\n"); 78 79 } -
orxonox/trunk/src/lib/collision_detection/obb_tree.h
r4531 r4546 28 28 virtual void drawBVBlended(int currentDepth, const int depth) const; 29 29 30 void debug(); 31 30 32 private: 31 33 -
orxonox/trunk/src/subprojects/collision_detection/collision_detection.cc
r4530 r4546 21 21 #include "stdlibincl.h" 22 22 23 #include "cd_engine.h" 23 24 24 25 void Framework::moduleInit(int argc, char** argv) 25 26 { 27 CDEngine::getInstance(); 28 26 29 } 30 27 31 28 32 void Framework::moduleEventHandler(SDL_Event* event) … … 39 43 } 40 44 45 41 46 void Framework::moduleTick(float dt) 42 47 { 43 48 } 49 44 50 45 51 void Framework::moduleDraw() const … … 54 60 PRINT(0)("\n"); 55 61 } 62 56 63 57 64 void Framework::moduleInitGui(int argc, char** argv) -
orxonox/trunk/src/subprojects/framework.h
r4519 r4546 11 11 #endif 12 12 13 #define DATA_DIRECTORY "~/ svn/data/"13 #define DATA_DIRECTORY "~/orxonox/repos/trunk/data/" 14 14 #define MOUSE_BUTTON_COUNT 8 15 15
Note: See TracChangeset
for help on using the changeset viewer.