]> git.tdb.fi Git - libs/game.git/blobdiff - examples/bassteroids/source/asteroid.cpp
Change Owned's constructor to take a pointer to the parent
[libs/game.git] / examples / bassteroids / source / asteroid.cpp
index 4a89cdbd7e079c23921797856fb3e057ba4124e5..01b760539f070da0dcad1e9f8f0103962d44a6c2 100644 (file)
@@ -1,10 +1,9 @@
 #include "asteroid.h"
-#include <msp/game/transform.h>
 
 using namespace Msp;
 
 Asteroid::Asteroid(Game::Handle<Entity> p, const AsteroidSetup &s):
-       Entity(p, Game::TransformValues()),
+       Hittable(p, s.hittable, s.physical),
        setup(s),
-       mesh(*this, setup.mesh)
+       mesh(this, setup.mesh)
 { }