Initial import
This commit is contained in:
parent
71fb5e578f
commit
3cb9eb5031
69 changed files with 4197 additions and 0 deletions
26
Assets/Battle/BattleHero.cs
Normal file
26
Assets/Battle/BattleHero.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class BattleHero: BattleParticipant
|
||||
{
|
||||
public BattleHero(HeroId 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue