/*Map Constructor*/ public Tile[,] CreateMap(int newColumn, int newRow) { Tile[,] Map; int column = newColumn, row = newRow; Map = new Tile[column, row]; for (int x = 0; x < column; x++) { for (int y = 0; y < row; y++) { Map[x, y] = new Tile(x, y); } } return Map; }
public String TestMap(Tile[,] aMap) { string output = ""; foreach (Tile tile in aMap) { output += "(" + tile.column + "," + tile.row + ") "; if (tile.leftWall == true) { output += " leftWall "; } else { output += " noLeftWall "; } if (tile.topWall == true) { output += " topWall "; } else { output += " noTopWall "; } output += Environment.NewLine; } //output += "minotaur " + minotaur.Coordinate + "\n" + "theseus " + theseus.Coordinate; return output; }