Changeset 3544 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Mar 14, 2005, 10:54:00 AM (20 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
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.