Class BomberScreen

java.lang.Object
com.badlogic.gdx.InputAdapter
com.badlogic.gdx.scenes.scene2d.Stage
com.bomber7.core.screens.BomberScreen
All Implemented Interfaces:
com.badlogic.gdx.InputProcessor, com.badlogic.gdx.Screen, com.badlogic.gdx.utils.Disposable, MVCComponent
Direct Known Subclasses:
GameScreen, KeyBindingScreen, MainMenuScreen, MapSelectionScreen, PauseScreen, PlayerSelectionScreen, ScoreBoardScreen, SettingsScreen

public abstract class BomberScreen extends com.badlogic.gdx.scenes.scene2d.Stage implements com.badlogic.gdx.Screen, MVCComponent
An abstract Screen class that all bomber screens should inherit from.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.badlogic.gdx.scenes.scene2d.Stage

    com.badlogic.gdx.scenes.scene2d.Stage.TouchFocus
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final BomberGame
    Game object.
    protected final ResourceManager
    Reference to the ResourceManager instance for easier resources access.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BomberScreen(com.badlogic.gdx.Game game)
    Initializes the screen.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    abstract ScreenType
    Returns the type of this screen.
    void
     
    void
     
    void
    render(float delta)
     
    void
    resize(int width, int height)
     
    void
     
    void
     

    Methods inherited from class com.badlogic.gdx.scenes.scene2d.Stage

    act, act, actorRemoved, addAction, addActor, addCaptureListener, addListener, addTouchFocus, calculateScissors, cancelTouchFocus, cancelTouchFocus, cancelTouchFocusExcept, clear, draw, getActionsRequestRendering, getActors, getBatch, getCamera, getDebugColor, getHeight, getKeyboardFocus, getRoot, getScrollFocus, getViewport, getWidth, hit, isDebugAll, isInsideViewport, keyDown, keyTyped, keyUp, mouseMoved, removeCaptureListener, removeListener, removeTouchFocus, screenToStageCoordinates, scrolled, setActionsRequestRendering, setDebugAll, setDebugInvisible, setDebugParentUnderMouse, setDebugTableUnderMouse, setDebugTableUnderMouse, setDebugUnderMouse, setKeyboardFocus, setRoot, setScrollFocus, setViewport, stageToScreenCoordinates, toScreenCoordinates, touchCancelled, touchDown, touchDragged, touchUp, unfocus, unfocusAll

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.bomber7.utils.MVCComponent

    initController, initView
  • Field Details

    • game

      protected final BomberGame game
      Game object.
    • resources

      protected final ResourceManager resources
      Reference to the ResourceManager instance for easier resources access.
  • Constructor Details

    • BomberScreen

      public BomberScreen(com.badlogic.gdx.Game game)
      Initializes the screen.
      Parameters:
      game - the Game instance this screen belongs to
  • Method Details

    • show

      public void show()
      Specified by:
      show in interface com.badlogic.gdx.Screen
    • render

      public void render(float delta)
      Specified by:
      render in interface com.badlogic.gdx.Screen
    • resize

      public void resize(int width, int height)
      Specified by:
      resize in interface com.badlogic.gdx.Screen
    • pause

      public void pause()
      Specified by:
      pause in interface com.badlogic.gdx.Screen
    • resume

      public void resume()
      Specified by:
      resume in interface com.badlogic.gdx.Screen
    • hide

      public void hide()
      Specified by:
      hide in interface com.badlogic.gdx.Screen
    • dispose

      public void dispose()
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Specified by:
      dispose in interface com.badlogic.gdx.Screen
      Overrides:
      dispose in class com.badlogic.gdx.scenes.scene2d.Stage
    • getScreenType

      public abstract ScreenType getScreenType()
      Returns the type of this screen. Used in ScreenManager to avoid multiple stacks.
      Returns:
      the screenType of the screen.