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