Package com.csse3200.game.screens
Class CombatScreen
java.lang.Object
com.badlogic.gdx.ScreenAdapter
com.csse3200.game.screens.ResizableScreen
com.csse3200.game.screens.CombatScreen
- All Implemented Interfaces:
com.badlogic.gdx.Screen
The game screen containing the combat feature.
Details on libGDX screens: https://happycoding.io/tutorials/libgdx/game-screens
-
Field Summary
Fields inherited from class com.csse3200.game.screens.ResizableScreen
renderer
-
Constructor Summary
ConstructorsConstructorDescriptionCombatScreen
(GdxGame game, com.badlogic.gdx.Screen screen, ServiceContainer container, Entity player, Entity enemy) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Dispose of current screen, only handles Render and Entity service.void
pause()
Pause the game, eventually will need to pause musicvoid
render
(float delta) Render the Screen.void
resize
(int width, int height) Resize the screen to match window.void
resume()
Resume the game, unpause music, when implementedMethods inherited from class com.badlogic.gdx.ScreenAdapter
hide, show
-
Constructor Details
-
CombatScreen
public CombatScreen(GdxGame game, com.badlogic.gdx.Screen screen, ServiceContainer container, Entity player, Entity enemy)
-
-
Method Details
-
render
public void render(float delta) Description copied from class:ResizableScreen
Render the Screen.- Specified by:
render
in interfacecom.badlogic.gdx.Screen
- Overrides:
render
in classResizableScreen
-
resize
public void resize(int width, int height) Description copied from class:ResizableScreen
Resize the screen to match window.- Specified by:
resize
in interfacecom.badlogic.gdx.Screen
- Overrides:
resize
in classResizableScreen
- Parameters:
width
- The width of the new screen.height
- The height of the new screen.
-
pause
public void pause()Pause the game, eventually will need to pause music- Specified by:
pause
in interfacecom.badlogic.gdx.Screen
- Overrides:
pause
in classResizableScreen
-
resume
public void resume()Resume the game, unpause music, when implemented- Specified by:
resume
in interfacecom.badlogic.gdx.Screen
- Overrides:
resume
in classResizableScreen
-
dispose
public void dispose()Description copied from class:ResizableScreen
Dispose of current screen, only handles Render and Entity service.- Specified by:
dispose
in interfacecom.badlogic.gdx.Screen
- Overrides:
dispose
in classResizableScreen
-