Пример #1
0
        public void damage(IDamage damager)
        {
            float amount = damager.getAmount();

            healthContainer.remove(amount);

            if (healthContainer.isEmpty())
            {
                die();
            }
        }