X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=examples%2Fbassteroids%2Fsource%2Fphysicalentity.cpp;h=83b3ee2d4f6a427bcae6eb22174c4d2d1cba9352;hb=a5be9fabc4c8fb153f2176dfce93874d699f32a0;hp=585eb349e683116f560d98cf91fd1de3840a38ab;hpb=0636566dd84ca185d3e9a6fae02459569c42d220;p=libs%2Fgame.git diff --git a/examples/bassteroids/source/physicalentity.cpp b/examples/bassteroids/source/physicalentity.cpp index 585eb34..83b3ee2 100644 --- a/examples/bassteroids/source/physicalentity.cpp +++ b/examples/bassteroids/source/physicalentity.cpp @@ -1,12 +1,11 @@ #include "physicalentity.h" -#include using namespace Msp; -PhysicalEntity::PhysicalEntity(Game::Handle p, const Setup &s): - Entity(p, Game::TransformValues()), - collider(*this, s.collider) +PhysicalEntity::PhysicalEntity(Game::Handle p, const Setup &s, const Game::TransformValues &tv): + Entity(p, tv), + collider(this, s.collider) { if(!s.fixture) - body = Game::Owned(*this, s.body); + body = Game::Owned(this, s.body); }