4 #include <msp/game/entity.h>
5 #include "damagesource.h"
7 #include "physicalentity.h"
10 class Hittable: public PhysicalEntity
13 using Setup = HittableSetup;
16 Msp::Game::Owned<HitPoints> hits;
17 Msp::Game::Owned<DamageSource> damage;
20 Hittable(Msp::Game::Handle<Msp::Game::Entity>, const Setup &, const PhysicalSetup &,
21 const Msp::Game::TransformValues & = Msp::Game::TransformValues());
23 Msp::Game::Handle<HitPoints> get_hitpoints() { return hits; }
24 Msp::Game::Handle<DamageSource> get_damage() { return damage; }