Implement TargetingPolicy, Cover can only target other allies

This commit is contained in:
henriquenakashima 2020-09-19 16:02:38 -04:00
parent 611601934d
commit 3e0004d4cb
21 changed files with 151 additions and 26 deletions

View file

@ -4,7 +4,10 @@ using UnityEngine;
public class BattleHero: BattleParticipant
{
public BattleHero(HeroId id) {
HeroId id;
public BattleHero(HeroId id) : base(true) {
this.id = id;
switch (id)
{
case HeroId.Alchemist:
@ -23,4 +26,8 @@ public class BattleHero: BattleParticipant
throw new System.ArgumentException("HeroId unknown", "id");
}
}
public HeroId GetId() {
return this.id;
}
}