X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=examples%2Fbassteroids%2Fsource%2Fbullet.h;h=de0804a83974826a8681f511c29d44fe48c96bff;hb=cb4e8bbe06dc64aff932784541a29493723fc03e;hp=825125fa01c1490463a29ba9f59dd7f68d06e16f;hpb=683858c0265e820d57bb5a1f7f21ab72b232a79d;p=libs%2Fgame.git diff --git a/examples/bassteroids/source/bullet.h b/examples/bassteroids/source/bullet.h index 825125f..de0804a 100644 --- a/examples/bassteroids/source/bullet.h +++ b/examples/bassteroids/source/bullet.h @@ -2,15 +2,16 @@ #define BULLET_H_ #include -#include "physicalentity.h" +#include "hittable.h" struct BulletSetup { PhysicalSetup physical; + HittableSetup hittable; Msp::Game::MeshSourceSetup mesh; }; -class Bullet: public PhysicalEntity +class Bullet: public Hittable { private: Msp::Game::Owned mesh; @@ -18,7 +19,7 @@ private: public: using Setup = BulletSetup; - Bullet(Msp::Game::Handle, const Setup &); + Bullet(Msp::Game::Handle, const Setup &, const Msp::Game::TransformValues & = Msp::Game::TransformValues()); }; #endif