Пример #1
0
    public void changeTransistionType()
    {
        if (tileList.Count < 2)
        {
        }
        else
        {
            Tile tile1 = tileList[0];
            Tile tile2 = tileList[1];

            if (((tile1.getBiome() != Biome.Ocean) && (tile2.getBiome() == Biome.Ocean)) || ((tile1.getBiome() == Biome.Ocean) && (tile2.getBiome() != Biome.Ocean)))
            {
                graphics.changeEdgePieces(edgeNumber, BiomeTransistion.Coast, this.centre, this.secondCentre, this.orientation);
                this.biomeTransisition = BiomeTransistion.Coast;
            }
            else
            {
                graphics.changeEdgePieces(edgeNumber, BiomeTransistion.None, this.centre, this.secondCentre, this.orientation);
                this.biomeTransisition = BiomeTransistion.None;
            }
        }
    }