public void AddTile(string tileType, string[] neighbours, int[] edgeNo)
    {
        GraphTile t = new GraphTile(tileType);

        tileHashMap[t.hashLabel] = t;
        AddToNeighbours(t, neighbours, edgeNo);
    }
Ejemplo n.º 2
0
    void AddTile(Vector3 pos)
    {
        GraphTile tile = new GraphTile();

        tile.position = pos;
        graphTiles.Add(tile);
    }
 public void AddToNeighbours(GraphTile newTile, string[] neighbours, int[] edgeNo)
 {
     for (int i = 0; i < neighbours.Length; ++i)
     {
         tileHashMap[neighbours[i]].neighbours[edgeNo[i]] = newTile.hashLabel;
         newTile.neighbours[i] = neighbours[i];
     }
 }