Add guards and implement basic cards
This commit is contained in:
parent
30beb96397
commit
08c395cf51
32 changed files with 803 additions and 24 deletions
16
Assets/Battle/Targeting/OtherTargetPolicy.cs
Normal file
16
Assets/Battle/Targeting/OtherTargetPolicy.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class OtherTargetPolicy: TargetingPolicy
|
||||
{
|
||||
private BattleParticipant owner;
|
||||
|
||||
public OtherTargetPolicy(BattleParticipant owner) {
|
||||
this.owner = owner;
|
||||
}
|
||||
|
||||
public override bool CanTarget(BattleParticipant participant) {
|
||||
return participant != this.owner;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue