4 #include <msp/game/component.h>
8 /*class Loader: public Msp::DataFile::ObjectLoader<HitPointsSetup>
12 unsigned max_hits = 1;
13 unsigned vulnerable_to = ~0U;
16 class HitPoints: public Msp::Game::Component
19 using Setup = HitPointsSetup;
23 unsigned remaining_hits;
26 HitPoints(Msp::Game::Handle<Msp::Game::Entity>, const Setup &);
28 void take_damage(unsigned, unsigned);
30 bool is_alive() const { return remaining_hits; }