Class KlotskiGame

java.lang.Object
com.badlogic.gdx.Game
dev.plagarizers.klotski.KlotskiGame
All Implemented Interfaces:
com.badlogic.gdx.ApplicationListener

public class KlotskiGame extends com.badlogic.gdx.Game
The KlotskiGame class represents the main game class that extends the Game class from libGDX. It manages the game's initialization, resources, screens, and settings.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     

    Fields inherited from class com.badlogic.gdx.Game

    screen
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    com.badlogic.gdx.scenes.scene2d.ui.Image
    Returns the background image of the game as an Image widget.
    com.badlogic.gdx.graphics.OrthographicCamera
    Returns the game's camera.
    com.badlogic.gdx.scenes.scene2d.ui.Skin
    Returns the game's skin.

    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

  • Constructor Details

    • KlotskiGame

      public KlotskiGame()
  • Method Details

    • create

      public void create()
    • getBackground

      public com.badlogic.gdx.scenes.scene2d.ui.Image getBackground()
      Returns the background image of the game as an Image widget.
      Returns:
      The background Image.
    • getCamera

      public com.badlogic.gdx.graphics.OrthographicCamera getCamera()
      Returns the game's camera.
      Returns:
      The OrthographicCamera instance.
    • getSkin

      public com.badlogic.gdx.scenes.scene2d.ui.Skin getSkin()
      Returns the game's skin.
      Returns:
      The Skin instance representing the game's skin.
    • dispose

      public void dispose()
      Specified by:
      dispose in interface com.badlogic.gdx.ApplicationListener
      Overrides:
      dispose in class com.badlogic.gdx.Game