public void ReceiveDamage(CombatAction combatAction) { var damageAction = combatAction as DamageAction; HealthPoint.Minus(damageAction.DamageValue); CallAction(CombatActionType.CauseDamage, combatAction); }
public void Initialize() { NumericBox.Initialize(); ActionTrigger.Initialize(); HealthPoint.SetMaxValue(99_999); HealthPoint.Reset(); }
public void ReceiveCure(int cure) { HealthPoint.Add(cure); }
public void ReceiveCure(CombatOperation combatOperation) { var cureOperation = combatOperation as CureOperation; HealthPoint.Add(cureOperation.CureValue); }
public void ReceiveDamage(CombatOperation combatOperation) { var damageOperation = combatOperation as DamageOperation; HealthPoint.Minus(damageOperation.DamageValue); }