Exemplo n.º 1
0
        public bool CanBuildRoad(TerrainMap tm)
        {
            for (int i = 0; i <= 5; i++)
            {
                Hexside hs = (Hexside)i;
                TerrainGridHex nhex = (TerrainGridHex)tm.BoardHexes[Coords].Neighbour(hs);

                Town t = tm.GetTown(nhex.Coords);
                Castle c = tm.GetCastle(nhex.Coords);

                if (nhex.SpecialType == "Road" || t != null || c != null) return true;
            }

            return false;
        }