Changeset 10417
- Timestamp:
- May 3, 2015, 1:31:18 PM (10 years ago)
- Location:
- code/branches/core7/src
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/modules/objects/collisionshapes/BoxCollisionShape.cc
r9667 r10417 58 58 } 59 59 60 BoxCollisionShape::~BoxCollisionShape()61 {62 // TODO: Move to CollisionShape?63 if (this->isInitialized())64 delete this->collisionShape_;65 }66 67 60 void BoxCollisionShape::registerVariables() 68 61 { -
code/branches/core7/src/modules/objects/collisionshapes/BoxCollisionShape.h
r9667 r10417 58 58 public: 59 59 BoxCollisionShape(Context* context); 60 virtual ~BoxCollisionShape();61 60 62 61 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); -
code/branches/core7/src/modules/objects/collisionshapes/ConeCollisionShape.cc
r10189 r10417 54 54 } 55 55 56 ConeCollisionShape::~ConeCollisionShape()57 {58 if (this->isInitialized())59 delete this->collisionShape_;60 }61 62 56 /** 63 57 @brief -
code/branches/core7/src/modules/objects/collisionshapes/ConeCollisionShape.h
r10189 r10417 56 56 public: 57 57 ConeCollisionShape(Context* context); 58 virtual ~ConeCollisionShape();59 58 60 59 private: -
code/branches/core7/src/modules/objects/collisionshapes/CylinderCollisionShape.cc
r10262 r10417 54 54 } 55 55 56 CylinderCollisionShape::~CylinderCollisionShape()57 {58 if (this->isInitialized())59 delete this->collisionShape_;60 }61 62 56 /** 63 57 @brief -
code/branches/core7/src/modules/objects/collisionshapes/CylinderCollisionShape.h
r10262 r10417 53 53 public: 54 54 CylinderCollisionShape(Context* context); 55 virtual ~CylinderCollisionShape();56 55 57 56 private: -
code/branches/core7/src/modules/objects/collisionshapes/PlaneCollisionShape.cc
r9667 r10417 59 59 } 60 60 61 PlaneCollisionShape::~PlaneCollisionShape()62 {63 if (this->isInitialized())64 delete this->collisionShape_;65 }66 67 61 void PlaneCollisionShape::registerVariables() 68 62 { -
code/branches/core7/src/modules/objects/collisionshapes/PlaneCollisionShape.h
r9667 r10417 58 58 public: 59 59 PlaneCollisionShape(Context* context); 60 virtual ~PlaneCollisionShape();61 60 62 61 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); -
code/branches/core7/src/modules/objects/collisionshapes/SphereCollisionShape.cc
r9667 r10417 58 58 } 59 59 60 SphereCollisionShape::~SphereCollisionShape()61 {62 if (this->isInitialized())63 delete this->collisionShape_;64 }65 66 60 void SphereCollisionShape::registerVariables() 67 61 { -
code/branches/core7/src/modules/objects/collisionshapes/SphereCollisionShape.h
r9667 r10417 56 56 public: 57 57 SphereCollisionShape(Context* context); 58 virtual ~SphereCollisionShape();59 58 60 59 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); -
code/branches/core7/src/orxonox/collisionshapes/CollisionShape.cc
r10415 r10417 82 82 if (this->parent_) 83 83 this->parent_->detach(this); 84 85 if (this->collisionShape_) 86 delete this->collisionShape_; 84 87 } 85 88 } -
code/branches/core7/src/orxonox/collisionshapes/CompoundCollisionShape.cc
r9667 r10417 71 71 it->first->notifyDetached(); 72 72 it->first->destroy(); 73 if (this->collisionShape_ == it->second) 74 this->collisionShape_ = NULL; // don't destroy it twice 73 75 } 74 76 75 77 delete this->compoundShape_; 78 if (this->collisionShape_ == this->compoundShape_) 79 this->collisionShape_ = NULL; // don't destroy it twice 76 80 } 77 81 } -
code/branches/core7/src/orxonox/collisionshapes/WorldEntityCollisionShape.cc
r10380 r10417 48 48 } 49 49 50 WorldEntityCollisionShape::~WorldEntityCollisionShape()51 {52 // Called always by WE destructor53 }54 55 50 void WorldEntityCollisionShape::updateParent() 56 51 { -
code/branches/core7/src/orxonox/collisionshapes/WorldEntityCollisionShape.h
r9667 r10417 39 39 public: 40 40 WorldEntityCollisionShape(Context* context); 41 virtual ~WorldEntityCollisionShape();42 41 43 42 inline void setWorldEntityOwner(WorldEntity* worldEntityOwner)
Note: See TracChangeset
for help on using the changeset viewer.