cleaning up *Shape constructors

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-09-24 13:22:05 -04:00
parent 06820210eb
commit 1b14dcaeb8
4 changed files with 4 additions and 9 deletions
+1 -3
View File
@@ -34,10 +34,8 @@ namespace physics
namespace box2d
{
ChainShape::ChainShape(b2ChainShape * c, bool loop)
: loop(loop)
: Shape(c), loop(loop)
{
shape = c;
Memoizer::add(shape, this);
}
ChainShape::~ChainShape()
+1 -2
View File
@@ -33,9 +33,8 @@ namespace physics
namespace box2d
{
CircleShape::CircleShape(b2CircleShape * c)
: Shape(c)
{
shape = c;
Memoizer::add(shape, this);
}
CircleShape::~CircleShape()
+1 -2
View File
@@ -33,9 +33,8 @@ namespace physics
namespace box2d
{
EdgeShape::EdgeShape(b2EdgeShape * e)
: Shape(e)
{
shape = e;
Memoizer::add(shape, this);
}
EdgeShape::~EdgeShape()
+1 -2
View File
@@ -34,9 +34,8 @@ namespace physics
namespace box2d
{
PolygonShape::PolygonShape(b2PolygonShape * p)
: Shape(p)
{
shape = p;
Memoizer::add(shape, this);
}
PolygonShape::~PolygonShape()