Class MapLoader

java.lang.Object
de.tum.cit.ase.maze.utils.MapLoader

public final class MapLoader extends Object
The MapLoader class is responsible for loading map files and creating a game grid based on the loaded map. It provides methods to access the loaded map coordinates and the game grid.
  • Field Details

    • width

      public static float width
    • height

      public static float height
  • Constructor Details

    • MapLoader

      public MapLoader()
  • Method Details

    • loadMapFile

      public static void loadMapFile(com.badlogic.gdx.files.FileHandle fileHandle)
      Loads a map file and creates a game grid based on the loaded map.
      Parameters:
      fileHandle - the handle of the map file to load
      Throws:
      MapLoadingException - if there is an error loading the map file
    • getMapCoordinates

      public static List<com.badlogic.gdx.math.Vector2> getMapCoordinates(ObjectType type)
    • getGameGrid

      public static Grid getGameGrid()