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

    Fields
    Modifier and Type
    Field
    Description
    boolean
     
    com.badlogic.gdx.graphics.glutils.ShapeRenderer
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Editor class is responsible for managing the editor functionality of the Maze Runner game.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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
     
    final void
    Exits the editor application by quitting the editor and returning to the main menu.
     
    games.spooky.gdx.nativefilechooser.NativeFileChooser
     
     
    void
     
    void
     
    void
     
    void
    render(float delta)
     
    void
    resize(int width, int height)
     
    void
     
    void
     
    final void
    testMap(Map map)
    Executes the test for a given map.

    Methods inherited from class com.badlogic.gdx.InputAdapter

    keyDown, keyTyped, keyUp, mouseMoved, scrolled, touchCancelled, touchDown, touchDragged, touchUp

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • shapeRenderer

      public com.badlogic.gdx.graphics.glutils.ShapeRenderer shapeRenderer
    • saved

      public boolean saved
  • Constructor Details

    • Editor

      public Editor(MazeRunnerGame game)
      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 interface com.badlogic.gdx.Screen
    • render

      public void render(float delta)
      Specified by:
      render in interface com.badlogic.gdx.Screen
    • resize

      public void resize(int width, int height)
      Specified by:
      resize in interface com.badlogic.gdx.Screen
    • dispose

      public void dispose()
      Specified by:
      dispose in interface com.badlogic.gdx.Screen
    • pause

      public void pause()
      Specified by:
      pause in interface com.badlogic.gdx.Screen
    • resume

      public void resume()
      Specified by:
      resume in interface com.badlogic.gdx.Screen
    • hide

      public void hide()
      Specified by:
      hide in interface com.badlogic.gdx.Screen
    • getGame

      public MazeRunnerGame getGame()
    • getEditorCanvas

      public EditorCanvas 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

      public final void testMap(Map map)
      Executes the test for a given map.
      Parameters:
      map - The map to be tested.