public void Fillmap() //Method to populate map with empty tiles { for (int x = 0; x < mapwidth; x++) { for (int y = 0; y < mapheight; y++) { map[x, y] = new Emptytile(x, y); } } }
public void InitializeMap() //Method to fill map with empty tiles and obstacles { for (int x = 0; x < mapwidth; x++) { for (int y = 0; y < mapheight; y++) { map[x, y] = new Emptytile(x, y); } } SetObstacles(); }