Class FinalScreen

  • All Implemented Interfaces:
    com.badlogic.gdx.Screen

    public class FinalScreen
    extends java.lang.Object
    implements com.badlogic.gdx.Screen
    Displays the screen that announces that the player has made it to the final.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.badlogic.gdx.graphics.g2d.BitmapFont font  
      private DragonBoatRace game
      The instance of the game.
      private com.badlogic.gdx.graphics.g2d.GlyphLayout layout  
      private Boat playerBoat
      The players boat to be carried through the rounds.
    • Constructor Summary

      Constructors 
      Constructor Description
      FinalScreen​(DragonBoatRace game, Boat playerBoat)
      Creates a new screen that displays the announcement message to the player.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()  
      void hide()  
      void pause()  
      void render​(float delta)
      Renders the screen and the message to the player.
      void resize​(int width, int height)  
      void resume()  
      void show()  
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • playerBoat

        private final Boat playerBoat
        The players boat to be carried through the rounds.
      • font

        private final com.badlogic.gdx.graphics.g2d.BitmapFont font
      • layout

        private final com.badlogic.gdx.graphics.g2d.GlyphLayout layout
    • Constructor Detail

      • FinalScreen

        public FinalScreen​(DragonBoatRace game,
                           Boat playerBoat)
        Creates a new screen that displays the announcement message to the player.
        Parameters:
        game - The instance of the game to use.
        playerBoat - The players boat to carry through the rounds.
    • Method Detail

      • show

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

        public void render​(float delta)
        Renders the screen and the message to the player.
        Specified by:
        render in interface com.badlogic.gdx.Screen
        Parameters:
        delta - The time passed since the last frame.
      • 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.Screen