- Timestamp:
- Mar 14, 2005, 10:54:00 AM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 36 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/ability.h
r3224 r3544 10 10 public: 11 11 Ability (); 12 ~Ability ();12 virtual ~Ability (); 13 13 14 14 }; -
orxonox/trunk/src/ai/ai.h
r3481 r3544 9 9 public: 10 10 AI (); 11 ~AI ();11 virtual ~AI (); 12 12 13 13 }; -
orxonox/trunk/src/camera.cc
r3543 r3544 51 51 Camera::~Camera () 52 52 { 53 this->destroy();54 }55 56 /**57 \brief deletes all allocated memory58 */59 void Camera::destroy(void)60 {61 53 this->bound = NULL; 62 54 this->world = NULL; 63 55 64 static_cast<WorldEntity*>(this)->destroy();65 56 } 66 57 -
orxonox/trunk/src/camera.h
r3543 r3544 55 55 Camera (World* world); 56 56 virtual ~Camera (); 57 void destroy(void);58 57 59 58 void timeSlice (Uint32 deltaT); -
orxonox/trunk/src/glmenu/glmenu_imagescreen.cc
r3543 r3544 46 46 /** 47 47 \brief standard deconstructor 48 \todo this deconstructor is not jet implemented - do it 48 49 */ 49 50 GLMenuImageScreen::~GLMenuImageScreen() 50 {51 this->destroy();52 }53 54 /**55 \brief deletes all alocated Memory and also deletes everything from the Class this one is erived from56 57 \todo this deconstructor is not jet implemented - do it58 */59 void GLMenuImageScreen::destroy(void)60 51 { 61 52 if (backMat) 62 53 delete backMat; 63 64 static_cast<BaseObject*>(this)->destroy();65 54 } 66 55 -
orxonox/trunk/src/glmenu/glmenu_imagescreen.h
r3543 r3544 18 18 19 19 public: 20 ~GLMenuImageScreen (); 21 void destroy(void); 22 20 virtual ~GLMenuImageScreen (); 21 23 22 static GLMenuImageScreen* getInstance(); 24 23 -
orxonox/trunk/src/lib/coord/helper_parent.cc
r3533 r3544 41 41 HelperParent::~HelperParent () 42 42 { 43 this->destroy(); 43 44 44 } 45 46 47 /**48 \brief destroys all allocated memory49 */50 void HelperParent::destroy(void)51 {52 53 54 static_cast<PNode*>(this)->destroy();55 } -
orxonox/trunk/src/lib/coord/helper_parent.h
r3533 r3544 18 18 HelperParent (); 19 19 virtual ~HelperParent (); 20 void destroy(void);21 20 22 21 }; -
orxonox/trunk/src/lib/coord/null_parent.cc
r3543 r3544 61 61 NullParent::~NullParent () 62 62 { 63 this->destroy();64 }65 66 /**67 \brief destroys all allocated memory68 */69 void NullParent::destroy(void)70 {71 63 //delete singletonRef; 72 64 singletonRef = NULL; 73 74 static_cast<PNode*>(this)->destroy();75 65 } 76 77 78 66 79 67 /** -
orxonox/trunk/src/lib/coord/null_parent.h
r3533 r3544 17 17 static NullParent* getInstance (); 18 18 virtual ~NullParent (); 19 void destroy(void);20 21 19 22 20 static NullParent* singletonRef; -
orxonox/trunk/src/lib/coord/p_node.cc
r3543 r3544 113 113 /* there is currently a problem with cleaning up - fix*/ 114 114 115 this->destroy(); 115 PNode* pn = this->children->enumerate(); 116 while( pn != NULL) 117 { 118 pn = this->children->nextElement(); 119 delete pn; 120 } 121 /* this deletes all children in the list */ 122 delete this->children; 123 116 124 } 117 125 … … 122 130 cleans up all pnodes 123 131 */ 132 /* 124 133 void PNode::destroy () 125 134 { … … 130 139 pn = this->children->nextElement(); 131 140 } 132 / * this deletes all children in the list */141 // this deletes all children in the list 133 142 this->children->destroy (); 134 143 135 144 static_cast<BaseObject*>(this)->destroy(); 136 145 } 137 146 */ 138 147 139 148 /** -
orxonox/trunk/src/lib/coord/p_node.h
r3543 r3544 41 41 PNode (Vector* absCoordinate, PNode* pNode); 42 42 virtual ~PNode (); 43 44 void destroy ();45 43 46 44 PNode* parent; //!< a pointer to the parent node -
orxonox/trunk/src/lib/lang/base_object.cc
r3531 r3544 37 37 BaseObject::~BaseObject () 38 38 { 39 this->destroy();40 }41 39 42 /**43 \brief destorys everything BaseObject allocated44 */45 void BaseObject::destroy(void)46 {47 // delete []this->className;48 40 } 49 41 -
orxonox/trunk/src/lib/lang/base_object.h
r3531 r3544 17 17 virtual ~BaseObject (); 18 18 19 void destroy(void);20 21 19 void setClassName (char* className); 22 20 char* getClassName(void) const; -
orxonox/trunk/src/light.cc
r3543 r3544 52 52 Light::~Light () 53 53 { 54 this->destroy();55 }56 57 58 /**59 \brief frees all alocated memory60 61 and in this case also deletes the lightSources and GL_LIGHTING62 */63 void Light::destroy(void)64 {65 54 glDisable(GL_LIGHTING); 66 55 … … 69 58 delete lights; 70 59 Light::singletonRef = NULL; 71 72 static_cast<WorldEntity*>(this)->destroy(); 73 } 74 60 } 75 61 76 62 /** -
orxonox/trunk/src/light.h
r3543 r3544 61 61 static Light* getInstance(); 62 62 virtual ~Light(void); 63 void destroy(void);64 65 63 66 64 // set Attributes -
orxonox/trunk/src/orxonox.cc
r3543 r3544 48 48 Orxonox::~Orxonox () 49 49 { 50 this->destroy();51 }52 53 /**54 \brief destroys orxonox. Frees al memory and so on.55 */56 void Orxonox::destroy(void)57 {58 50 Orxonox::singletonRef = NULL; 59 51 if( world != NULL) delete world; … … 61 53 if( localcamera != NULL) delete localcamera; 62 54 if( resources != NULL) delete resources; 63 64 65 55 } 66 56 -
orxonox/trunk/src/orxonox.h
r3543 r3544 25 25 Orxonox (); 26 26 virtual ~Orxonox (); 27 void destroy(void);28 27 29 28 char configfilename[256]; //!< Filename of the configuration-file. -
orxonox/trunk/src/proto_class.cc
r3543 r3544 40 40 ProtoClass::~ProtoClass () 41 41 { 42 this->destroy();43 }44 45 /**46 \brief deletes all data and also deletes all data from the class this is derived from47 */48 ProtoClass::~destroy(void)49 {50 42 // delete what has to be deleted here 51 static_cast<BaseObject*>(this)->destroy();52 43 } 53 44 -
orxonox/trunk/src/proto_class.h
r3543 r3544 29 29 ProtoClass(); 30 30 virtual ~ProtoClass(); 31 void destroy(void)32 31 33 32 bool doNonSense (int nothing); -
orxonox/trunk/src/story_entities/campaign.h
r3472 r3544 13 13 public: 14 14 Campaign (); 15 ~Campaign ();15 virtual ~Campaign (); 16 16 17 17 StoryEntity* currentEntity; -
orxonox/trunk/src/story_entities/world.cc
r3543 r3544 69 69 cn->reset(); 70 70 71 this->localCamera->destroy(); 72 this->nullParent->destroy(); 71 delete this->localCamera; 73 72 delete this->nullParent; 74 73 //delete this->skySphere; … … 665 664 p4->debug (); 666 665 667 p1->destroy ();666 delete p1; 668 667 669 668 -
orxonox/trunk/src/track_manager.cc
r3543 r3544 226 226 TrackManager::~TrackManager(void) 227 227 { 228 this->destroy();229 }230 231 /**232 \brief deletes all alocated Memory and also deletes everything from the Class this one is erived from233 */234 void TrackManager::destroy(void)235 {236 228 PRINTF(3)("Destruct TrackManager\n"); 237 229 … … 241 233 // we do not have a TrackManager anymore 242 234 singletonRef = NULL; 243 244 static_cast<BaseObject*>(this)->destroy();245 235 } 246 236 -
orxonox/trunk/src/track_manager.h
r3543 r3544 122 122 public: 123 123 virtual ~TrackManager(void); 124 void destroy(void); 124 125 125 static TrackManager* getInstance(void); 126 126 -
orxonox/trunk/src/track_node.cc
r3533 r3544 66 66 TrackNode::~TrackNode () 67 67 { 68 this->destroy();68 singletonRef = NULL; 69 69 } 70 71 /**72 \brief destroys the TrackNode and all its alocated memory.73 */74 void TrackNode::destroy(void)75 {76 singletonRef = NULL;77 78 static_cast<PNode*>(this)->destroy();79 } -
orxonox/trunk/src/track_node.h
r3533 r3544 22 22 static TrackNode* getInstance (); 23 23 virtual ~TrackNode (); 24 void destroy();25 24 26 25 private: -
orxonox/trunk/src/world_entities/environment.h
r3472 r3544 18 18 public: 19 19 Environment (); 20 ~Environment ();20 virtual ~Environment (); 21 21 22 22 -
orxonox/trunk/src/world_entities/npc.h
r3531 r3544 12 12 NPC (); 13 13 ~NPC (); 14 void destroy(void);15 14 16 15 /* collision control */ -
orxonox/trunk/src/world_entities/player.cc
r3535 r3544 33 33 34 34 /** 35 \brief destructs the player 35 \brief destructs the player, deletes alocated memory 36 36 */ 37 37 Player::~Player () 38 38 { 39 this->destroy();40 }41 42 /**43 \brief deletes all allocated memory of the Player44 */45 void Player::destroy ()46 {47 39 delete this->model; 48 49 static_cast<WorldEntity*>(this)->destroy();50 40 } 51 41 -
orxonox/trunk/src/world_entities/player.h
r3531 r3544 19 19 Player(bool isFree = false); 20 20 virtual ~Player(); 21 void destroy();22 21 23 22 virtual void postSpawn(); -
orxonox/trunk/src/world_entities/power_up.h
r3483 r3544 15 15 public: 16 16 PowerUp (); 17 ~PowerUp ();17 virtual ~PowerUp (); 18 18 19 19 }; -
orxonox/trunk/src/world_entities/primitive.cc
r3537 r3544 39 39 } 40 40 41 void Primitive::destroy ()42 {43 44 45 static_cast<WorldEntity*>(this)->destroy();46 }47 48 49 41 void Primitive::tick (float time) 50 42 { -
orxonox/trunk/src/world_entities/primitive.h
r3531 r3544 13 13 Primitive (PRIMITIVE_FORM form); 14 14 virtual ~Primitive (); 15 void destroy(void);16 15 17 16 virtual void tick (float time); -
orxonox/trunk/src/world_entities/skysphere.cc
r3536 r3544 57 57 Skysphere::~Skysphere() 58 58 { 59 this->destroy();60 }61 62 void Skysphere::destroy(void)63 {64 65 59 PRINTF(3)("Deleting the SkySphere\n"); 66 delete skyMaterial; 67 free(sphereObj); 68 69 static_cast<WorldEntity*>(this)->destroy(); 60 delete this->skyMaterial; 61 free(this->sphereObj); 70 62 } 71 63 -
orxonox/trunk/src/world_entities/world_entity.cc
r3531 r3544 47 47 { 48 48 // if( collisioncluster != NULL) delete collisioncluster; 49 this->destroy(); 50 } 51 52 /** 53 \brief Function to call if a WorldEntity is destroyed. deletes all alocated memory. 54 */ 55 void WorldEntity::destroy() 56 { 57 58 // delete everything of pNode. 59 static_cast<PNode*>(this)->destroy(); 60 } 61 49 50 } 62 51 63 52 /** -
orxonox/trunk/src/world_entities/world_entity.h
r3531 r3544 21 21 WorldEntity (bool isFree = false); 22 22 virtual ~WorldEntity (); 23 void destroy ();24 23 25 24
Note: See TracChangeset
for help on using the changeset viewer.