Class AtlantisSinks

java.lang.Object
com.badlogic.gdx.Game
com.deco2800.game.AtlantisSinks
All Implemented Interfaces:
com.badlogic.gdx.ApplicationListener

public class AtlantisSinks extends com.badlogic.gdx.Game
Entry point of the non-platform-specific game logic. Controls which screen is currently running. The current screen triggers transitions to other screens. This works similarly to a finite state machine (See the State Pattern).
  • Field Details

    • gameRunning

      public static boolean gameRunning
    • playPrologue

      public static boolean playPrologue
  • Constructor Details

    • AtlantisSinks

      public AtlantisSinks()
  • Method Details

    • create

      public void create()
    • setScreen

      public void setScreen(AtlantisSinks.ScreenType screenType)
      Sets the game's screen to a new screen of the provided type.
      Parameters:
      screenType - screen type
    • setSettingsScreen

      public void setSettingsScreen(AtlantisSinks.ScreenType prevScreen)
    • dispose

      public void dispose()
      Specified by:
      dispose in interface com.badlogic.gdx.ApplicationListener
      Overrides:
      dispose in class com.badlogic.gdx.Game
    • exit

      public void exit()
      Exit the game.
    • getScreenType

      public AtlantisSinks.ScreenType getScreenType()