Package de.tum.cit.ase.editor.screens
Class Editor
java.lang.Object
com.badlogic.gdx.InputAdapter
de.tum.cit.ase.editor.screens.Editor
- All Implemented Interfaces:
com.badlogic.gdx.InputProcessor
,com.badlogic.gdx.Screen
public class Editor
extends com.badlogic.gdx.InputAdapter
implements com.badlogic.gdx.Screen
The Editor class is responsible for managing the editor screen of the Maze Runner game.
It extends InputAdapter and implements Screen.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
com.badlogic.gdx.graphics.glutils.ShapeRenderer
-
Constructor Summary
ConstructorDescriptionEditor
(MazeRunnerGame game) Editor class is responsible for managing the editor functionality of the Maze Runner game. -
Method Summary
Modifier and TypeMethodDescriptionvoid
chooseFile
(games.spooky.gdx.nativefilechooser.NativeFileChooserConfiguration configuration, games.spooky.gdx.nativefilechooser.NativeFileChooserCallback callback) Chooses a file using a native file chooser dialog.void
chooseFile
(String filter, String title, games.spooky.gdx.nativefilechooser.NativeFileChooserIntent dialogType, com.badlogic.gdx.files.FileHandle dir, games.spooky.gdx.nativefilechooser.NativeFileChooserCallback callback) Chooses a file using a native file chooser dialog.void
dispose()
final void
exit()
Exits the editor application by quitting the editor and returning to the main menu.games.spooky.gdx.nativefilechooser.NativeFileChooser
getGame()
void
void
hide()
void
pause()
void
render
(float delta) void
resize
(int width, int height) void
resume()
void
show()
final void
Executes the test for a given map.Methods inherited from class com.badlogic.gdx.InputAdapter
keyDown, keyTyped, keyUp, mouseMoved, scrolled, touchCancelled, touchDown, touchDragged, touchUp
-
Field Details
-
shapeRenderer
public com.badlogic.gdx.graphics.glutils.ShapeRenderer shapeRenderer -
saved
public boolean saved
-
-
Constructor Details
-
Editor
Editor class is responsible for managing the editor functionality of the Maze Runner game.
-
-
Method Details
-
chooseFile
public void chooseFile(String filter, String title, games.spooky.gdx.nativefilechooser.NativeFileChooserIntent dialogType, com.badlogic.gdx.files.FileHandle dir, games.spooky.gdx.nativefilechooser.NativeFileChooserCallback callback) Chooses a file using a native file chooser dialog.- Parameters:
filter
- The MIME filter for the file chooser dialog.title
- The title of the file chooser dialog.dialogType
- The type of file chooser dialog to show.dir
- The initial directory of the file chooser dialog.callback
- The callback to be called when a file is chosen or an error occurs.
-
chooseFile
public void chooseFile(games.spooky.gdx.nativefilechooser.NativeFileChooserConfiguration configuration, games.spooky.gdx.nativefilechooser.NativeFileChooserCallback callback) Chooses a file using a native file chooser dialog.- Parameters:
configuration
- The configuration options for the file chooser dialog.callback
- The callback to be called when a file is chosen or an error occurs.
-
getFileChooser
public games.spooky.gdx.nativefilechooser.NativeFileChooser getFileChooser() -
show
public void show()- Specified by:
show
in interfacecom.badlogic.gdx.Screen
-
render
public void render(float delta) - Specified by:
render
in interfacecom.badlogic.gdx.Screen
-
resize
public void resize(int width, int height) - Specified by:
resize
in interfacecom.badlogic.gdx.Screen
-
dispose
public void dispose()- Specified by:
dispose
in interfacecom.badlogic.gdx.Screen
-
pause
public void pause()- Specified by:
pause
in interfacecom.badlogic.gdx.Screen
-
resume
public void resume()- Specified by:
resume
in interfacecom.badlogic.gdx.Screen
-
hide
public void hide()- Specified by:
hide
in interfacecom.badlogic.gdx.Screen
-
getGame
-
getEditorCanvas
-
handleLostUiFocus
public void handleLostUiFocus() -
exit
public final void exit()Exits the editor application by quitting the editor and returning to the main menu. -
testMap
Executes the test for a given map.- Parameters:
map
- The map to be tested.
-