/// <summary> /// Puts the health to max health and fires events. /// </summary> public override void HealFull(IDamageInfo.DamageTyp dmgTyp) { BasicDamageInfo dmgInf = new BasicDamageInfo(dmgTyp, maxHealth - currentHealth); currentHealth = maxHealth; FireEvents(dmgInf); }
/// <summary> /// Puts the health to zero and fires a death event. /// </summary> public override void Kill(IDamageInfo.DamageTyp dmgTyp) { BasicDamageInfo dmgInf = new BasicDamageInfo(dmgTyp, -currentHealth); currentHealth = 0; FireEvents(dmgInf); }