#include namespace kurator { namespace sim { void HitPoints::deal(double damage) { health -= damage; } bool HitPoints::is_alive() const { return health > 0.0; } double HitPoints::total() const { return health; } } // namespace sim } // namespace kurator