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
|
|
@ -5,11 +5,16 @@ using UnityEngine;
|
|||
|
||||
public class BattleParticipant
|
||||
{
|
||||
protected bool isHero;
|
||||
protected string displayName;
|
||||
protected int hp;
|
||||
protected int maxHP;
|
||||
protected int block;
|
||||
|
||||
public BattleParticipant(bool isHero) {
|
||||
this.isHero = isHero;
|
||||
}
|
||||
|
||||
public void Init() {
|
||||
this.hp = this.maxHP;
|
||||
}
|
||||
|
|
@ -47,4 +52,8 @@ public class BattleParticipant
|
|||
public int GetBlock() {
|
||||
return this.block;
|
||||
}
|
||||
|
||||
public bool IsHero() {
|
||||
return this.isHero;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue