Implement BattleEffects, add Thunderstorm

This commit is contained in:
henriquenakashima 2020-09-19 16:58:14 -04:00
parent fc427bd276
commit 00448fe919
20 changed files with 215 additions and 18 deletions

View file

@ -3,7 +3,8 @@ using System.Collections.Generic;
using UnityEngine;
public enum CardType {
Action
Action,
Enchantment,
}
public abstract class BaseCard
@ -24,18 +25,24 @@ public abstract class BaseCard
this.effectText = effectText;
}
public abstract IEnumerator Use(BattlePlayerControls playerControls);
public abstract IEnumerator Use(IBattleEffectApplier effectApplier, BattlePlayerControls playerControls);
public CardId GetId() {return id;}
public string GetDisplayName() {return displayName;}
public int GetCost() {return cost;}
public CardId GetId() {return this.id;}
public string GetDisplayName() {return this.displayName;}
public int GetCost() {return this.cost;}
public string GetDisplayType() {
switch (type) {
switch (this.type) {
case CardType.Action:
return "";
return "Action";
case CardType.Enchantment:
return "Enchantment";
default:
throw new System.ArgumentException("CardType unknown", "cardType");
}
}
public string GetEffectText() {return effectText;}
public string GetEffectText() {return this.effectText;}
public bool IsPermanent() {
return this.type == CardType.Enchantment;
}
}