private new static Hex InitializeHex(HexCoords coords)
        {
            var value = _board[coords.User.Y][coords.User.X];

            switch (value)
            {
            case '.': return(TerrainGridHex.NewPassable(coords, 0, 0, value, 1));      // Path

            default:  return(TerrainGridHex.NewImpassable(coords, 1, 10, value));      // Wall
            }
        }
Ejemplo n.º 2
0
        public new static MapGridHex InitializeHex(HexCoords coords)
        {
            char value = _board[coords.User.Y][coords.User.X];

            switch (value)
            {
            case '.': return(TerrainGridHex.NewPassable(coords, 0, 0, value, 4));  // Clear

            case '2': return(TerrainGridHex.NewPassable(coords, 0, 0, value, 2));  // Pike

            case '3': return(TerrainGridHex.NewPassable(coords, 0, 0, value, 3));  // Road

            case 'F': return(TerrainGridHex.NewPassable(coords, 0, 0, value, 5));  // Ford

            case 'H': return(TerrainGridHex.NewPassable(coords, 1, 0, value, 5));  // Hill

            case 'M': return(TerrainGridHex.NewPassable(coords, 2, 0, value, 6));  // Mountain

            case 'W': return(TerrainGridHex.NewPassable(coords, 0, 7, value, 8));  // Woods

            default:
            case 'R': return(TerrainGridHex.NewImpassable(coords, 0, 0, value));     // River
            }
        }