5 HitPoints::HitPoints(Game::Handle<Game::Entity> e, const Setup &s):
8 remaining_hits(setup.max_hits)
11 void HitPoints::take_damage(unsigned amount, unsigned type)
13 if(!(setup.vulnerable_to&(1<<type)))
16 remaining_hits = (amount<remaining_hits ? remaining_hits-amount : 0);