4 #include <msp/game/entity.h>
5 #include "damagesource.h"
7 #include "physicalentity.h"
11 bool immortal = false;
12 bool damaging = false;
14 DamageSourceSetup damage;
17 class Hittable: public PhysicalEntity
20 using Setup = HittableSetup;
23 Msp::Game::Owned<HitPoints> hits;
24 Msp::Game::Owned<DamageSource> damage;
27 Hittable(Msp::Game::Handle<Msp::Game::Entity>, const Setup &, const PhysicalSetup &,
28 const Msp::Game::TransformValues & = Msp::Game::TransformValues());
30 Msp::Game::Handle<HitPoints> get_hitpoints() { return hits; }
31 Msp::Game::Handle<DamageSource> get_damage() { return damage; }