Package de.tum.cit.ase.maze.utils
Class MapLoader
java.lang.Object
de.tum.cit.ase.maze.utils.MapLoader
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Grid
static List<com.badlogic.gdx.math.Vector2>
getMapCoordinates
(ObjectType type) static void
loadMapFile
(com.badlogic.gdx.files.FileHandle fileHandle) Loads a map file and creates a game grid based on the loaded map.
-
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
-
getGameGrid
-