mixedcards/Assets/Battle/BattleHero.cs
2020-10-01 23:30:19 -04:00

35 lines
944 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BattleHero: BattleParticipant
{
protected HeroId mId;
public BattleHero(HeroId id) : base(TeamChoice.Heroes) {
mId = id;
switch (id)
{
case HeroId.Alchemist:
this.displayName = "Alex";
this.maxHP = 10;
break;
case HeroId.Brute:
this.displayName = "Brian";
this.maxHP = 12;
break;
case HeroId.Shaman:
this.displayName = "Slug";
this.maxHP = 10;
break;
case HeroId.NPCGuard:
this.displayName = "Guard";
this.maxHP = 8;
break;
default:
throw new System.ArgumentException("HeroId unknown", "id");
}
}
public HeroId Id {get => mId;}
}