question: private int damage ( final int amount ) { int tempHp = getHP ( ) ; final int taken = Math . min ( amount , tempHp ) ; tempHp -= taken ; setHP ( tempHp ) ; return taken ; }
target:  Apply damage to this entity. This is normally called from one of the other damage() methods to account for death.