using System.Collections; using System.Collections.Generic; using UnityEngine; public class DealDamageEffect : IBattleEffect { private BattleParticipant source; private BattleParticipant target; private int amount; private int amountDealt; public DealDamageEffect(BattleParticipant source, BattleParticipant target, int amount) { this.source = source; this.target = target; this.amount = amount; } public void Apply(IBattleEffectResolver resolver) { this.amountDealt = resolver.DealDamage(this); } public BattleParticipant Source {get => this.source;} public BattleParticipant Target {get => this.target;} public int Amount {get => this.amount;} public int AmountDealt {get => this.amountDealt;} }