Package com.deco2800.game
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).
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.badlogic.gdx.Game
screen -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate()voiddispose()voidexit()Exit the game.voidsetScreen(AtlantisSinks.ScreenType screenType) Sets the game's screen to a new screen of the provided type.voidsetSettingsScreen(AtlantisSinks.ScreenType prevScreen) Methods inherited from class com.badlogic.gdx.Game
getScreen, pause, render, resize, resume, setScreen
-
Field Details
-
gameRunning
public static boolean gameRunning -
playPrologue
public static boolean playPrologue
-
-
Constructor Details
-
AtlantisSinks
public AtlantisSinks()
-
-
Method Details
-
create
public void create() -
setScreen
Sets the game's screen to a new screen of the provided type.- Parameters:
screenType- screen type
-
setSettingsScreen
-
dispose
public void dispose()- Specified by:
disposein interfacecom.badlogic.gdx.ApplicationListener- Overrides:
disposein classcom.badlogic.gdx.Game
-
exit
public void exit()Exit the game. -
getScreenType
-