Split Action into Attack and Skill

This commit is contained in:
henriquenakashima 2020-09-19 17:30:40 -04:00
parent 1e8d3bb068
commit 6724d2b5c5
6 changed files with 23 additions and 10 deletions

View file

@ -2,11 +2,6 @@
using System.Collections.Generic;
using UnityEngine;
public enum CardType {
Action,
Enchantment,
}
public abstract class BaseCard
{
protected BattleParticipant owner;
@ -32,8 +27,10 @@ public abstract class BaseCard
public int GetCost() {return this.cost;}
public string GetDisplayType() {
switch (this.type) {
case CardType.Action:
return "Action";
case CardType.Attack:
return "Attack";
case CardType.Skill:
return "Skill";
case CardType.Enchantment:
return "Enchantment";
default:

View file

@ -0,0 +1,5 @@
public enum CardType {
Attack,
Skill,
Enchantment,
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0429b510893707547a1514ef50772203
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -5,7 +5,7 @@ using UnityEngine;
public class CardCover : BaseCard
{
public CardCover(BattleParticipant owner)
: base(owner, CardId.Cover, "Cover", 1, CardType.Action,
: base(owner, CardId.Cover, "Cover", 1, CardType.Skill,
"Block 3 damage on another target ally.") {
}

View file

@ -5,7 +5,7 @@ using UnityEngine;
public class CardCrashingPunch : BaseCard
{
public CardCrashingPunch(BattleParticipant owner)
: base(owner, CardId.CrashingPunch, "Crashing Punch", 3, CardType.Action,
: base(owner, CardId.CrashingPunch, "Crashing Punch", 3, CardType.Attack,
"Deals 3 damage to target.") {
}

View file

@ -5,7 +5,7 @@ using UnityEngine;
public class CardLightningStrike : BaseCard
{
public CardLightningStrike(BattleParticipant owner)
: base(owner, CardId.LightningStrike, "Lightning Strike", 2, CardType.Action,
: base(owner, CardId.LightningStrike, "Lightning Strike", 2, CardType.Attack,
"Deals 3 damage to target.") {
}