Changeset 4511 in orxonox.OLD for orxonox/trunk/src/util
- Timestamp:
- Jun 6, 2005, 12:31:17 AM (20 years ago)
- Location:
- orxonox/trunk/src/util
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/collision_detection/bounding_volume.cc
r4510 r4511 10 10 11 11 ### File Specific: 12 main-programmer: ...12 main-programmer: Patrick Boenzli 13 13 co-programmer: ... 14 14 */ 15 15 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_COLLISION 17 17 18 #include " proto_class.h"18 #include "bounding_volume.h" 19 19 20 20 using namespace std; … … 23 23 /** 24 24 \brief standard constructor 25 \todo this constructor is not jet implemented - do it26 25 */ 27 ProtoClass::ProtoClass()26 BoundingVolume::BoundingVolume () 28 27 { 29 this->setClassID(CL_ PROTO_ID, "ProtoClass");28 this->setClassID(CL_BOUNDING_VOLUME, "BoundingVolume"); 30 29 31 /* If you make a new class, what is most probably the case when you write this file32 don't forget to:33 1. Add the new file new_class.cc to the ./src/Makefile.am34 2. Add the class identifier to ./src/class_list.h eg. CL_NEW_CLASS35 36 Advanced Topics:37 - if you want to let your object be managed via the ObjectManager make sure to read38 the object_manager.h header comments. You will use this most certanly only if you39 make many objects of your class, like a weapon bullet.40 */41 30 } 42 31 … … 46 35 47 36 */ 48 ProtoClass::~ProtoClass()37 BoundingVolume::~BoundingVolume () 49 38 { 50 39 // delete what has to be deleted here -
orxonox/trunk/src/util/collision_detection/bounding_volume.h
r4510 r4511 1 1 /*! 2 \file proto_class.h3 \brief Definition of ...2 \file bounding_volume.h 3 \brief Definition of a bounding volume for collision detection algorithms 4 4 5 5 */ 6 6 7 #ifndef _ PROTO_CLASS_H8 #define _ PROTO_CLASS_H7 #ifndef _BOUNDING_VOLUME_H 8 #define _BOUNDING_VOLUME_H 9 9 10 10 #include "base_object.h" 11 11 12 // FORWARD DEFINITION13 12 14 15 16 //! A class for ... 17 class ProtoClass : public BaseObject { 13 //! An abstract class representing a bounding volume 14 class BoundingVolume : public BaseObject { 18 15 19 16 public: 20 ProtoClass();21 virtual ~ ProtoClass();17 BoundingVolume(); 18 virtual ~BoundingVolume(); 22 19 23 20 … … 26 23 }; 27 24 28 #endif /* _ PROTO_CLASS_H */25 #endif /* _BOUNDING_VOLUME_H */ -
orxonox/trunk/src/util/collision_detection/bv_tree.cc
r4510 r4511 10 10 11 11 ### File Specific: 12 main-programmer: ...12 main-programmer: Patrick Boenzli 13 13 co-programmer: ... 14 14 */ 15 15 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_COLLISION 17 17 18 #include " proto_class.h"18 #include "bv_tree.h" 19 19 20 20 using namespace std; … … 23 23 /** 24 24 \brief standard constructor 25 \todo this constructor is not jet implemented - do it26 25 */ 27 ProtoClass::ProtoClass()26 BVTree::BVTree () 28 27 { 29 this->setClassID(CL_ PROTO_ID, "ProtoClass");28 this->setClassID(CL_BV_TREE, "BVTree"); 30 29 31 /* If you make a new class, what is most probably the case when you write this file32 don't forget to:33 1. Add the new file new_class.cc to the ./src/Makefile.am34 2. Add the class identifier to ./src/class_list.h eg. CL_NEW_CLASS35 36 Advanced Topics:37 - if you want to let your object be managed via the ObjectManager make sure to read38 the object_manager.h header comments. You will use this most certanly only if you39 make many objects of your class, like a weapon bullet.40 */41 30 } 42 31 … … 46 35 47 36 */ 48 ProtoClass::~ProtoClass()37 BVTree::~BVTree () 49 38 { 50 39 // delete what has to be deleted here -
orxonox/trunk/src/util/collision_detection/bv_tree.h
r4510 r4511 1 1 /*! 2 \file proto_class.h3 \brief Definition of ...2 \file bv_tree.h 3 \brief Definition of a bounding volume tree 4 4 5 5 */ 6 6 7 #ifndef _ PROTO_CLASS_H8 #define _ PROTO_CLASS_H7 #ifndef _BV_TREE_H 8 #define _BV_TREE_H 9 9 10 10 #include "base_object.h" … … 15 15 16 16 //! A class for ... 17 class ProtoClass: public BaseObject {17 class BVTree : public BaseObject { 18 18 19 19 public: 20 ProtoClass();21 virtual ~ ProtoClass();20 BVTree(); 21 virtual ~BVTree(); 22 22 23 23 … … 26 26 }; 27 27 28 #endif /* _ PROTO_CLASS_H */28 #endif /* _BV_TREE_H */ -
orxonox/trunk/src/util/collision_detection/cd_engine.cc
r4510 r4511 10 10 11 11 ### File Specific: 12 main-programmer: ...12 main-programmer: Patrick Boenzli 13 13 co-programmer: ... 14 14 */ 15 15 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_COLLISION 17 17 18 #include " proto_singleton.h"18 #include "cd_engine.h" 19 19 20 20 using namespace std; … … 24 24 \brief standard constructor 25 25 */ 26 ProtoSingleton::ProtoSingleton()26 CDEngine::CDEngine () 27 27 { 28 this->setClassName("ProtoSingleton"); 29 this->setClassID(CL_PROTO_ID, "ProtoSingleton"); 30 31 /* If you make a new class, what is most probably the case when you write this file 32 don't forget to: 33 1. Add the new file new_class.cc to the ./src/Makefile.am 34 2. Add the class identifier to ./src/class_list.h eg. CL_NEW_CLASS 35 36 Advanced Topics: 37 - if you want to let your object be managed via the ObjectManager make sure to read 38 the object_manager.h header comments. You will use this most certanly only if you 39 make many objects of your class, like a weapon bullet. 40 */ 28 this->setClassName("CDEngine"); 29 this->setClassID(CL_CD_ENGINE, "CDEngine"); 41 30 } 42 31 … … 44 33 \brief the singleton reference to this class 45 34 */ 46 ProtoSingleton* ProtoSingleton::singletonRef = NULL;35 CDEngine* CDEngine::singletonRef = NULL; 47 36 48 37 /** 49 38 \returns a Pointer to this Class 50 39 */ 51 ProtoSingleton* ProtoSingleton::getInstance(void)40 CDEngine* CDEngine::getInstance(void) 52 41 { 53 if (! ProtoSingleton::singletonRef)54 ProtoSingleton::singletonRef = new ProtoSingleton();55 return ProtoSingleton::singletonRef;42 if (!CDEngine::singletonRef) 43 CDEngine::singletonRef = new CDEngine(); 44 return CDEngine::singletonRef; 56 45 } 57 46 … … 60 49 61 50 */ 62 ProtoSingleton::~ProtoSingleton()51 CDEngine::~CDEngine () 63 52 { 64 ProtoSingleton::singletonRef = NULL;53 CDEngine::singletonRef = NULL; 65 54 66 55 } -
orxonox/trunk/src/util/collision_detection/cd_engine.h
r4510 r4511 1 1 /*! 2 \file proto_singleton.h3 \brief Definition of the ... singleton Class2 \file cd_engine.h 3 \brief Definition of the collision detection engine 4 4 5 5 */ 6 6 7 #ifndef _ PROTO_SINGLETON_H8 #define _ PROTO_SINGLETON_H7 #ifndef _CD_ENGINE_H 8 #define _CD_ENGINE_H 9 9 10 10 #include "base_object.h" 11 11 12 // FORWARD DEFINITION13 12 14 //! A default singleton class.15 class ProtoSingleton: public BaseObject {13 //! The class representing the collision detection system of orxonox 14 class CDEngine : public BaseObject { 16 15 17 16 public: 18 static ProtoSingleton* getInstance(void);19 virtual ~ ProtoSingleton(void);17 static CDEngine* getInstance(void); 18 virtual ~CDEngine(void); 20 19 21 20 private: 22 ProtoSingleton(void);23 static ProtoSingleton* singletonRef;21 CDEngine(void); 22 static CDEngine* singletonRef; 24 23 }; 25 24 26 #endif /* _ PROTO_SINGLETON_H */25 #endif /* _CD_ENGINE_H */ -
orxonox/trunk/src/util/collision_detection/collision.cc
r4510 r4511 10 10 11 11 ### File Specific: 12 main-programmer: ...12 main-programmer: Patrick Boenzli 13 13 co-programmer: ... 14 14 */ 15 15 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_COLLISION 17 17 18 #include " proto_class.h"18 #include "collision.h" 19 19 20 20 using namespace std; … … 23 23 /** 24 24 \brief standard constructor 25 \todo this constructor is not jet implemented - do it26 25 */ 27 ProtoClass::ProtoClass()26 Collision::Collision () 28 27 { 29 this->setClassID(CL_ PROTO_ID, "ProtoClass");28 this->setClassID(CL_COLLISION, "Collision"); 30 29 31 /* If you make a new class, what is most probably the case when you write this file32 don't forget to:33 1. Add the new file new_class.cc to the ./src/Makefile.am34 2. Add the class identifier to ./src/class_list.h eg. CL_NEW_CLASS35 36 Advanced Topics:37 - if you want to let your object be managed via the ObjectManager make sure to read38 the object_manager.h header comments. You will use this most certanly only if you39 make many objects of your class, like a weapon bullet.40 */41 30 } 42 31 … … 46 35 47 36 */ 48 ProtoClass::~ProtoClass()37 Collision::~Collision () 49 38 { 50 39 // delete what has to be deleted here -
orxonox/trunk/src/util/collision_detection/collision.h
r4510 r4511 1 1 /*! 2 \file proto_class.h3 \brief Definition of ...2 \file collision.h 3 \brief Definition of a collision event 4 4 5 5 */ 6 6 7 #ifndef _ PROTO_CLASS_H8 #define _ PROTO_CLASS_H7 #ifndef _COLLISION_H 8 #define _COLLISION_H 9 9 10 10 #include "base_object.h" … … 14 14 15 15 16 //! A class for ...17 class ProtoClass: public BaseObject {16 //! A class representing a simple collision 17 class Collision : public BaseObject { 18 18 19 19 public: 20 ProtoClass();21 virtual ~ ProtoClass();20 Collision(); 21 virtual ~Collision(); 22 22 23 23 … … 26 26 }; 27 27 28 #endif /* _ PROTO_CLASS_H */28 #endif /* _COLLISION_H */ -
orxonox/trunk/src/util/collision_detection/obb.cc
r4510 r4511 10 10 11 11 ### File Specific: 12 main-programmer: ...12 main-programmer: Patrick Boenzli 13 13 co-programmer: ... 14 14 */ 15 15 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_COLLISION 17 17 18 #include " proto_class.h"18 #include "obb.h" 19 19 20 20 using namespace std; … … 23 23 /** 24 24 \brief standard constructor 25 \todo this constructor is not jet implemented - do it26 25 */ 27 ProtoClass::ProtoClass()26 OBB::OBB () 28 27 { 29 this->setClassID(CL_PROTO_ID, "ProtoClass"); 30 31 /* If you make a new class, what is most probably the case when you write this file 32 don't forget to: 33 1. Add the new file new_class.cc to the ./src/Makefile.am 34 2. Add the class identifier to ./src/class_list.h eg. CL_NEW_CLASS 35 36 Advanced Topics: 37 - if you want to let your object be managed via the ObjectManager make sure to read 38 the object_manager.h header comments. You will use this most certanly only if you 39 make many objects of your class, like a weapon bullet. 40 */ 28 this->setClassID(CL_OBB, "OBB"); 41 29 } 42 30 … … 46 34 47 35 */ 48 ProtoClass::~ProtoClass()36 OBB::~OBB () 49 37 { 50 38 // delete what has to be deleted here -
orxonox/trunk/src/util/collision_detection/obb.h
r4510 r4511 1 1 /*! 2 \file proto_class.h3 \brief Definition of ...2 \file obb.h 3 \brief Definition of an OBB (Object aligned Bounding Box) 4 4 5 5 */ 6 6 7 #ifndef _ PROTO_CLASS_H8 #define _ PROTO_CLASS_H7 #ifndef _OBB_H 8 #define _OBB_H 9 9 10 10 #include "base_object.h" 11 11 12 // FORWARD DEFINITION13 12 14 15 16 //! A class for ... 17 class ProtoClass : public BaseObject { 13 //! A class representing an extended bounding volume tree: an obb tree 14 class OBB : public BaseObject { 18 15 19 16 public: 20 ProtoClass();21 virtual ~ ProtoClass();17 OBB(); 18 virtual ~OBB(); 22 19 23 20 … … 26 23 }; 27 24 28 #endif /* _ PROTO_CLASS_H */25 #endif /* _OBB_H */ -
orxonox/trunk/src/util/collision_detection/obb_tree.cc
r4510 r4511 10 10 11 11 ### File Specific: 12 main-programmer: ...12 main-programmer: Patrick Boenzli 13 13 co-programmer: ... 14 14 */ 15 15 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_COLLISION 17 17 18 #include " proto_class.h"18 #include "obb_tree.h" 19 19 20 20 using namespace std; … … 23 23 /** 24 24 \brief standard constructor 25 \todo this constructor is not jet implemented - do it26 25 */ 27 ProtoClass::ProtoClass()26 OBBTree::OBBTree () 28 27 { 29 this->setClassID(CL_ PROTO_ID, "ProtoClass");28 this->setClassID(CL_OBB_TREE, "OBBTree"); 30 29 31 /* If you make a new class, what is most probably the case when you write this file32 don't forget to:33 1. Add the new file new_class.cc to the ./src/Makefile.am34 2. Add the class identifier to ./src/class_list.h eg. CL_NEW_CLASS35 36 Advanced Topics:37 - if you want to let your object be managed via the ObjectManager make sure to read38 the object_manager.h header comments. You will use this most certanly only if you39 make many objects of your class, like a weapon bullet.40 */41 30 } 42 31 … … 46 35 47 36 */ 48 ProtoClass::~ProtoClass()37 OBBTree::~OBBTree () 49 38 { 50 39 // delete what has to be deleted here -
orxonox/trunk/src/util/collision_detection/obb_tree.h
r4510 r4511 1 1 /*! 2 \file proto_class.h3 \brief Definition of ...2 \file obb_tree.h 3 \brief Definition of an obb tree (Object aligned Bounding Box) 4 4 5 5 */ 6 6 7 #ifndef _ PROTO_CLASS_H8 #define _ PROTO_CLASS_H7 #ifndef _OBB_TREE_H 8 #define _OBB_TREE_H 9 9 10 10 #include "base_object.h" 11 11 12 // FORWARD DEFINITION13 12 14 15 16 //! A class for ... 17 class ProtoClass : public BaseObject { 13 //! A class for representing an obb tree 14 class OBBTree : public BaseObject { 18 15 19 16 public: 20 ProtoClass();21 virtual ~ ProtoClass();17 OBBTree(); 18 virtual ~OBBTree(); 22 19 23 20 … … 26 23 }; 27 24 28 #endif /* _ PROTO_CLASS_H */25 #endif /* _OBB_TREE_H */ -
orxonox/trunk/src/util/loading/game_loader.cc
r4496 r4511 197 197 198 198 /** 199 \brief release the mem 199 \brief release the mem ATTENTION: not implemented 200 200 */ 201 201 ErrorMessage GameLoader::destroy() -
orxonox/trunk/src/util/loading/game_loader.h
r4487 r4511 77 77 bool isPaused; //!< if the game is paused 78 78 79 Campaign* currentCampaign; //!< the current campaign playing79 Campaign* currentCampaign; //!< reference to the current campaign playing 80 80 81 81 EventHandler* eventHandler; //!< reference to the eventHandler
Note: See TracChangeset
for help on using the changeset viewer.