Package com.mygdx.game
Class PirateGame
java.lang.Object
com.badlogic.gdx.Game
com.mygdx.game.PirateGame
- All Implemented Interfaces:
com.badlogic.gdx.ApplicationListener
public class PirateGame
extends com.badlogic.gdx.Game
Contains class instances of game UI screens.
-
Field Summary
Fields Modifier and Type Field Description EndScreenendGameScreengameMenuScreenmenucom.badlogic.gdx.scenes.scene2d.ui.Skinskincom.badlogic.gdx.scenes.scene2d.StagestageFields inherited from class com.badlogic.gdx.Game
screen -
Constructor Summary
Constructors Constructor Description PirateGame() -
Method Summary
Methods inherited from class com.badlogic.gdx.Game
getScreen, pause, render, resize, resume, setScreenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
game
-
end
-
stage
public com.badlogic.gdx.scenes.scene2d.Stage stage -
skin
public com.badlogic.gdx.scenes.scene2d.ui.Skin skin
-
Constructor Details
-
PirateGame
public PirateGame()
-
-
Method Details
-
create
public void create()Create instances of game stage and UI screens. -
dispose
public void dispose()Clean up prevent memory leeks- Specified by:
disposein interfacecom.badlogic.gdx.ApplicationListener- Overrides:
disposein classcom.badlogic.gdx.Game
-