public Tile(int x, int y, TileType tileType, TileOwnedState ownerState) { this.gridCoordinates = new GridCoordinates(x, y); this.tileType = tileType; this.ownerState = ownerState; this.name = String.Format("Tile-{0}-{1}", gridCoordinates.X, gridCoordinates.Y); ClearOwner(); }
public void ClearOwner() { owner = Player.Dummy; ownerState = TileOwnedState.Free; }
public void SetOwner(Player owner) { this.owner = owner; ownerState = TileOwnedState.Owned; }