src/SphereObject.cpp

Go to the documentation of this file.
00001 
00002 #include "SphereObject.h"
00003 
00004 
00007 SphereObject::SphereObject()
00008     : Object(true),
00009         mSphere()
00010 {
00011     LOG("Creating a unit sphere");
00012     mMass = BALL_MASS;
00013     mSphere = new Sphere(Vec3f(0), 0.5f);
00014     calcBounds();
00015 }
00016 
00017 
00023 SphereObject::SphereObject(const SphereObject & other)
00024     : Object(other),
00025         mSphere(other.mSphere)
00026 {
00027 }
00028 
00029 
00032 SphereObject::~SphereObject()
00033 {
00034     if (*mRefCounter <= 1)
00035     {
00036         // cleanup
00037         delete mSphere;
00038     }
00039 }
00040 
00041 

Generated on Fri Feb 1 00:01:42 2008 for Grayfall by  doxygen 1.5.1