mixedcards/Assets/Battle/BattleHero.cs

33 lines
814 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BattleHero: BattleParticipant
{
HeroId id;
public BattleHero(HeroId id) : base(true) {
this.id = id;
switch (id)
{
case HeroId.Alchemist:
this.displayName = "Alex";
this.maxHP = 10;
break;
case HeroId.Brute:
this.displayName = "Brian";
this.maxHP = 10;
break;
case HeroId.Shaman:
this.displayName = "Slug";
this.maxHP = 12;
break;
default:
throw new System.ArgumentException("HeroId unknown", "id");
}
}
public HeroId GetId() {
return this.id;
}
}