mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
cleaning up *Shape constructors
--HG-- branch : box2d-update
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -33,9 +33,8 @@ namespace physics
|
||||
namespace box2d
|
||||
{
|
||||
CircleShape::CircleShape(b2CircleShape * c)
|
||||
: Shape(c)
|
||||
{
|
||||
shape = c;
|
||||
Memoizer::add(shape, this);
|
||||
}
|
||||
|
||||
CircleShape::~CircleShape()
|
||||
|
||||
@@ -33,9 +33,8 @@ namespace physics
|
||||
namespace box2d
|
||||
{
|
||||
EdgeShape::EdgeShape(b2EdgeShape * e)
|
||||
: Shape(e)
|
||||
{
|
||||
shape = e;
|
||||
Memoizer::add(shape, this);
|
||||
}
|
||||
|
||||
EdgeShape::~EdgeShape()
|
||||
|
||||
@@ -34,9 +34,8 @@ namespace physics
|
||||
namespace box2d
|
||||
{
|
||||
PolygonShape::PolygonShape(b2PolygonShape * p)
|
||||
: Shape(p)
|
||||
{
|
||||
shape = p;
|
||||
Memoizer::add(shape, this);
|
||||
}
|
||||
|
||||
PolygonShape::~PolygonShape()
|
||||
|
||||
Reference in New Issue
Block a user