Beispiel #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);
    }
Beispiel #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);
    }
Beispiel #3
0
 public Claim(IClaimant claimant)
 {
     _claimant = claimant;
 }
Beispiel #4
0
 public bool IsClaimedBy(IClaimant claimant)
 {
     throw new NotImplementedException();
 }
Beispiel #5
0
 public Claim(IClaimant claimant)
 {
     Claimant = claimant;
     tags = new ObservableCollection<IClaimTag>();
 }