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
FieldsModifier and TypeFieldDescriptionbooleancom.badlogic.gdx.graphics.glutils.ShapeRenderer -
Constructor Summary
ConstructorsConstructorDescriptionEditor(MazeRunnerGame game) Editor class is responsible for managing the editor functionality of the Maze Runner game. -
Method Summary
Modifier and TypeMethodDescriptionvoidchooseFile(games.spooky.gdx.nativefilechooser.NativeFileChooserConfiguration configuration, games.spooky.gdx.nativefilechooser.NativeFileChooserCallback callback) Chooses a file using a native file chooser dialog.voidchooseFile(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.voiddispose()final voidexit()Exits the editor application by quitting the editor and returning to the main menu.games.spooky.gdx.nativefilechooser.NativeFileChoosergetGame()voidvoidhide()voidpause()voidrender(float delta) voidresize(int width, int height) voidresume()voidshow()final voidExecutes 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:
showin interfacecom.badlogic.gdx.Screen
-
render
public void render(float delta) - Specified by:
renderin interfacecom.badlogic.gdx.Screen
-
resize
public void resize(int width, int height) - Specified by:
resizein interfacecom.badlogic.gdx.Screen
-
dispose
public void dispose()- Specified by:
disposein interfacecom.badlogic.gdx.Screen
-
pause
public void pause()- Specified by:
pausein interfacecom.badlogic.gdx.Screen
-
resume
public void resume()- Specified by:
resumein interfacecom.badlogic.gdx.Screen
-
hide
public void hide()- Specified by:
hidein 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.
-