Implement TargetingPolicy, Cover can only target other allies
This commit is contained in:
parent
611601934d
commit
3e0004d4cb
21 changed files with 151 additions and 26 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue