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.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()
-
-
-
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:
show
in interfacecom.badlogic.gdx.Screen
-
render
public void render(float delta)
Renders the screen and the message to the player.- Specified by:
render
in interfacecom.badlogic.gdx.Screen
- Parameters:
delta
- The time passed since the last frame.
-
resize
public void resize(int width, int height)
- Specified by:
resize
in interfacecom.badlogic.gdx.Screen
-
pause
public void pause()
- Specified by:
pause
in interfacecom.badlogic.gdx.Screen
-
resume
public void resume()
- Specified by:
resume
in interfacecom.badlogic.gdx.Screen
-
hide
public void hide()
- Specified by:
hide
in interfacecom.badlogic.gdx.Screen
-
dispose
public void dispose()
- Specified by:
dispose
in interfacecom.badlogic.gdx.Screen
-
-