Implement Whirlwind
This commit is contained in:
parent
9413ebee7e
commit
6a6f07689e
18 changed files with 330 additions and 52 deletions
21
Assets/Battle/Effects/RotateEffect.cs
Normal file
21
Assets/Battle/Effects/RotateEffect.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class RotateEffect : IBattleEffect
|
||||
{
|
||||
private TeamChoice team;
|
||||
private int positions;
|
||||
|
||||
public RotateEffect(TeamChoice team, int positions) {
|
||||
this.team = team;
|
||||
this.positions = positions;
|
||||
}
|
||||
|
||||
public void Apply(IBattleEffectResolver resolver) {
|
||||
resolver.Rotate(this);
|
||||
}
|
||||
|
||||
public TeamChoice Team {get => this.team;}
|
||||
public int Positions {get => this.positions;}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue