]> git.tdb.fi Git - libs/game.git/blobdiff - examples/bassteroids/source/physicalentity.cpp
Change Owned's constructor to take a pointer to the parent
[libs/game.git] / examples / bassteroids / source / physicalentity.cpp
index 585eb349e683116f560d98cf91fd1de3840a38ab..83b3ee2d4f6a427bcae6eb22174c4d2d1cba9352 100644 (file)
@@ -1,12 +1,11 @@
 #include "physicalentity.h"
-#include <msp/game/transform.h>
 
 using namespace Msp;
 
-PhysicalEntity::PhysicalEntity(Game::Handle<Game::Entity> p, const Setup &s):
-       Entity(p, Game::TransformValues()),
-       collider(*this, s.collider)
+PhysicalEntity::PhysicalEntity(Game::Handle<Game::Entity> p, const Setup &s, const Game::TransformValues &tv):
+       Entity(p, tv),
+       collider(this, s.collider)
 {
        if(!s.fixture)
-               body = Game::Owned<RigidBody>(*this, s.body);
+               body = Game::Owned<RigidBody>(this, s.body);
 }