public void ReceiveDamage(CombatAction combatAction) { var damageAction = combatAction as DamageAction; HealthPoint.Minus(damageAction.DamageValue); CallAction(CombatActionType.CauseDamage, combatAction); }
public void ReceiveDamage(CombatOperation combatOperation) { var damageOperation = combatOperation as DamageOperation; HealthPoint.Minus(damageOperation.DamageValue); }