Esempio n. 1
0
    public void changeBiome(Biome nBiome)
    {
        if (nBiome == Biome.None)
        {
        }
        else
        {
            this.biome = nBiome;
            graphics.buildTile(position, phantomPosition, nBiome, tileNum);

            for (int i = 0; i < 6; i++)
            {
                edgeList[i].changeTransistionType();
            }
        }
    }
Esempio n. 2
0
    public Tile(int q, int r, int s, float xPos, float yPos, int i, int j, int tileNo, BoardGraphics nGraphics, bool inWestHalf, float mapX)
    {
        position = new Vector3(xPos, yPos, 0);

        if (inWestHalf)
        {
            phantomPosition = new Vector3(xPos + mapX, yPos, 0);
        }
        else
        {
            phantomPosition = new Vector3(xPos - mapX, yPos, 0);
        }


        graphics = nGraphics;
        qCoord   = q;
        rCoord   = r;
        sCoord   = s;

        if (q + r + s != 0)
        {
            Debug.Log("False");
        }

        iCoord = i;
        jCoord = j;

        tileNum = tileNo;

        vertexList = new Vertex[6];
        edgeList   = new Edge[6];

        biome   = Biome.Ocean;
        feature = BiomeFeatures.None;

        graphics.buildTile(position, phantomPosition, Biome.Ocean, tileNum);

        province = null;
    }