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

public class CombatScreen extends ResizableScreen
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

    Constructors
    Constructor
    Description
    CombatScreen(GdxGame game, com.badlogic.gdx.Screen screen, ServiceContainer container, Entity player, Entity enemy)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Dispose of current screen, only handles Render and Entity service.
    void
    Pause the game, eventually will need to pause music
    void
    render(float delta)
    Render the Screen.
    void
    resize(int width, int height)
    Resize the screen to match window.
    void
    Resume the game, unpause music, when implemented

    Methods inherited from class com.badlogic.gdx.ScreenAdapter

    hide, show

    Methods inherited from class java.lang.Object

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

  • Method Details

    • render

      public void render(float delta)
      Description copied from class: ResizableScreen
      Render the Screen.
      Specified by:
      render in interface com.badlogic.gdx.Screen
      Overrides:
      render in class ResizableScreen
    • resize

      public void resize(int width, int height)
      Description copied from class: ResizableScreen
      Resize the screen to match window.
      Specified by:
      resize in interface com.badlogic.gdx.Screen
      Overrides:
      resize in class ResizableScreen
      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 interface com.badlogic.gdx.Screen
      Overrides:
      pause in class ResizableScreen
    • resume

      public void resume()
      Resume the game, unpause music, when implemented
      Specified by:
      resume in interface com.badlogic.gdx.Screen
      Overrides:
      resume in class ResizableScreen
    • dispose

      public void dispose()
      Description copied from class: ResizableScreen
      Dispose of current screen, only handles Render and Entity service.
      Specified by:
      dispose in interface com.badlogic.gdx.Screen
      Overrides:
      dispose in class ResizableScreen