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
    EndScreen end  
    GameScreen game  
    MenuScreen menu  
    com.badlogic.gdx.scenes.scene2d.ui.Skin skin  
    com.badlogic.gdx.scenes.scene2d.Stage stage  

    Fields inherited from class com.badlogic.gdx.Game

    screen
  • Constructor Summary

    Constructors
    Constructor Description
    PirateGame()  
  • Method Summary

    Modifier and Type Method Description
    void create()
    Create instances of game stage and UI screens.
    void dispose()
    Clean up prevent memory leeks

    Methods inherited from class com.badlogic.gdx.Game

    getScreen, pause, render, resize, resume, setScreen

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • game

      public GameScreen game
    • end

      public EndScreen 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:
      dispose in interface com.badlogic.gdx.ApplicationListener
      Overrides:
      dispose in class com.badlogic.gdx.Game