示例#1
0
    public bool SetClaimant(IClaimant claimant)
    {
        if (IsClaimed())
        {
            Debug.LogWarning("Tile could not be claimed, because it already have a claimant...");
            return(false);
        }

        this.claimant = claimant;
        return(true);
    }
示例#2
0
    public bool UnsetClaimant(IClaimant claimant)
    {
        if (!IsClaimed())
        {
            Debug.LogWarning("Tile could not be unclaimed, because it has no claimant...");
            return(false);
        }

        this.claimant = null;
        return(true);
    }
示例#3
0
 public Claim(IClaimant claimant)
 {
     _claimant = claimant;
 }
示例#4
0
 public bool IsClaimedBy(IClaimant claimant)
 {
     throw new NotImplementedException();
 }
示例#5
0
 public Claim(IClaimant claimant)
 {
     Claimant = claimant;
     tags = new ObservableCollection<IClaimTag>();
 }