Package com.csse3200.game
Class GdxGame
java.lang.Object
com.badlogic.gdx.Game
com.csse3200.game.GdxGame
- All Implemented Interfaces:
com.badlogic.gdx.ApplicationListener
public class GdxGame
extends com.badlogic.gdx.Game
The main game class.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.badlogic.gdx.Game
screen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
create()
void
dispose()
void
exit()
Exits the game.void
Initializes the game after loading screen is complete.void
setScreen
(GdxGame.ScreenType screenType) Sets the game screen to the provided type.Methods inherited from class com.badlogic.gdx.Game
getScreen, pause, render, resize, resume, setScreen
-
Constructor Details
-
GdxGame
public GdxGame()
-
-
Method Details
-
create
public void create() -
initializeGame
public void initializeGame()Initializes the game after loading screen is complete. This method is called by the LoadingScreen when loading is finished. -
setScreen
Sets the game screen to the provided type. -
dispose
public void dispose()- Specified by:
dispose
in interfacecom.badlogic.gdx.ApplicationListener
- Overrides:
dispose
in classcom.badlogic.gdx.Game
-
exit
public void exit()Exits the game.
-