Package com.deco2800.game
Class GdxGame
java.lang.Object
com.badlogic.gdx.Game
com.deco2800.game.GdxGame
- All Implemented Interfaces:
ApplicationListener
public class GdxGame extends 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 Modifier and Type Class Description static class
GdxGame.ScreenType
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GdxGame()
-
Method Summary
Modifier and Type Method Description void
create()
void
dispose()
void
exit()
Exit the game.void
setScreen(GdxGame.ScreenType screenType)
Sets the game's screen to a new screen of the provided type.
-
Constructor Details
-
GdxGame
public GdxGame()
-
-
Method Details