Package com.dragonboatrace.screens
Class FinalScreen
- java.lang.Object
-
- com.dragonboatrace.screens.FinalScreen
-
- All Implemented Interfaces:
com.badlogic.gdx.Screen
public class FinalScreen extends java.lang.Object implements com.badlogic.gdx.ScreenDisplays 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.BitmapFontfontprivate DragonBoatRacegameThe instance of the game.private com.badlogic.gdx.graphics.g2d.GlyphLayoutlayoutprivate BoatplayerBoatThe 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 voiddispose()voidhide()voidpause()voidrender(float delta)Renders the screen and the message to the player.voidresize(int width, int height)voidresume()voidshow()
-
-
-
Field Detail
-
game
private final DragonBoatRace game
The instance of the game.
-
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:
showin interfacecom.badlogic.gdx.Screen
-
render
public void render(float delta)
Renders the screen and the message to the player.- Specified by:
renderin interfacecom.badlogic.gdx.Screen- Parameters:
delta- The time passed since the last frame.
-
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.Screen
-
-