Package com.bomber7.core.screens
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
FieldsModifier and TypeFieldDescriptionprotected final BomberGameGame object.protected final ResourceManagerReference to the ResourceManager instance for easier resources access. -
Constructor Summary
Constructors -
Method Summary
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, unfocusAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.bomber7.utils.MVCComponent
initController, initView
-
Field Details
-
game
Game object. -
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:
showin interfacecom.badlogic.gdx.Screen
-
render
public void render(float delta) - Specified by:
renderin interfacecom.badlogic.gdx.Screen
-
resize
public void resize(int width, int height) - Specified by:
resizein interfacecom.badlogic.gdx.Screen
-
pause
public void pause()- Specified by:
pausein interfacecom.badlogic.gdx.Screen
-
resume
public void resume()- Specified by:
resumein interfacecom.badlogic.gdx.Screen
-
hide
public void hide()- Specified by:
hidein interfacecom.badlogic.gdx.Screen
-
dispose
public void dispose()- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable- Specified by:
disposein interfacecom.badlogic.gdx.Screen- Overrides:
disposein classcom.badlogic.gdx.scenes.scene2d.Stage
-
getScreenType
Returns the type of this screen. Used in ScreenManager to avoid multiple stacks.- Returns:
- the screenType of the screen.
-