Implement Whirlwind
This commit is contained in:
parent
9413ebee7e
commit
6a6f07689e
18 changed files with 330 additions and 52 deletions
|
|
@ -3,11 +3,6 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
public enum TeamChoice {
|
||||
Heroes,
|
||||
Monsters,
|
||||
}
|
||||
|
||||
public class DrawCardsEffect : IBattleEffect
|
||||
{
|
||||
private int amount;
|
||||
|
|
|
|||
23
Assets/Battle/Effects/MassDamageEffect.cs
Normal file
23
Assets/Battle/Effects/MassDamageEffect.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class MassDamageEffect : IBattleEffect
|
||||
{
|
||||
private TeamChoice team;
|
||||
private int amount;
|
||||
private int amountDealt;
|
||||
|
||||
public MassDamageEffect(TeamChoice team, int amount) {
|
||||
this.team = team;
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
public void Apply(IBattleEffectResolver resolver) {
|
||||
this.amountDealt = resolver.DealMassDamage(this);
|
||||
}
|
||||
|
||||
public TeamChoice Team {get => this.team;}
|
||||
public int Amount {get => this.amount;}
|
||||
public int AmountDealt {get => this.amountDealt;}
|
||||
}
|
||||
11
Assets/Battle/Effects/MassDamageEffect.cs.meta
Normal file
11
Assets/Battle/Effects/MassDamageEffect.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 441ec218e72296d43968d6b2f8cf1248
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
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;}
|
||||
}
|
||||
11
Assets/Battle/Effects/RotateEffect.cs.meta
Normal file
11
Assets/Battle/Effects/RotateEffect.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a2349d6cbfd005648a535c6976375835
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Add table
Add a link
Reference in a new issue