DealDamage and AddBlock are effects
This commit is contained in:
parent
8b33f3ff5a
commit
cbc8c8b6cd
9 changed files with 71 additions and 3 deletions
18
Assets/Battle/Effects/DealDamageEffect.cs
Normal file
18
Assets/Battle/Effects/DealDamageEffect.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class DealDamageEffect : IBattleEffect
|
||||
{
|
||||
private BattleParticipant target;
|
||||
private int amount;
|
||||
|
||||
public DealDamageEffect(BattleParticipant target, int amount) {
|
||||
this.target = target;
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
public void Apply(IBattleEffectResolver resolver) {
|
||||
resolver.DealDamage(this.target, this.amount);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue