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

@ -8,13 +8,15 @@ public enum CardType {
public abstract class BaseCard
{
private CardId id;
private string displayName;
private int cost;
private CardType type;
private string effectText;
protected BattleParticipant owner;
protected CardId id;
protected string displayName;
protected int cost;
protected CardType type;
protected string effectText;
public BaseCard(CardId id, string displayName, int cost, CardType type, string effectText) {
public BaseCard(BattleParticipant owner, CardId id, string displayName, int cost, CardType type, string effectText) {
this.owner = owner;
this.id = id;
this.displayName = displayName;
this.cost = cost;