4 #include <msp/game/component.h>
8 /*class Loader: public Msp::DataFile::ObjectLoader<HitPointsSetup>
12 unsigned max_hits = 1;
13 unsigned vulnerable_to = ~0U;
18 unsigned remaining_hits;
21 class HitPoints: public Msp::Game::BufferedComponent<HitPointsData>
24 using Setup = HitPointsSetup;
30 HitPoints(Msp::Game::Handle<Msp::Game::Entity>, const Setup &);
32 void take_damage(unsigned, unsigned);
34 bool is_alive() const { return read().remaining_hits; }