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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue