Split Action into Attack and Skill
This commit is contained in:
parent
1e8d3bb068
commit
6724d2b5c5
6 changed files with 23 additions and 10 deletions
|
|
@ -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:
|
||||
|
|
|
|||
5
Assets/Battle/CardType.cs
Normal file
5
Assets/Battle/CardType.cs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
public enum CardType {
|
||||
Attack,
|
||||
Skill,
|
||||
Enchantment,
|
||||
}
|
||||
11
Assets/Battle/CardType.cs.meta
Normal file
11
Assets/Battle/CardType.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0429b510893707547a1514ef50772203
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -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.") {
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.") {
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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.") {
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue