Class WorldMapScreen

java.lang.Object
com.badlogic.gdx.ScreenAdapter
com.csse3200.game.screens.WorldMapScreen
All Implemented Interfaces:
com.badlogic.gdx.Screen

public class WorldMapScreen extends com.badlogic.gdx.ScreenAdapter
World map screen
  • Field Details

    • game

      protected final GdxGame game
    • renderer

      protected final Renderer renderer
    • backgroundTexture

      protected final Optional<String> backgroundTexture
    • additionalTextures

      protected final Optional<String[]> additionalTextures
  • Constructor Details

    • WorldMapScreen

      public WorldMapScreen(GdxGame game)
      Constructor for the world map screen.
      Parameters:
      game - the game instance
  • Method Details

    • constructEntity

      protected Entity constructEntity(com.badlogic.gdx.scenes.scene2d.Stage stage)
      Constructs the UI entity for the world map screen.
      Parameters:
      stage - the stage to create the UI screen on
      Returns:
      the UI entity
    • 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
      Overrides:
      resize in class com.badlogic.gdx.ScreenAdapter
    • dispose

      public void dispose()
      Specified by:
      dispose in interface com.badlogic.gdx.Screen
      Overrides:
      dispose in class com.badlogic.gdx.ScreenAdapter