package de.thdeg.greiner.superpangworld.graphics.helper;

import de.thdeg.greiner.superpangworld.gameview.GameView;

/**
 * The class handling the end screen of the game.
 */
public class EndScreen {

    /**
     * The game view to display the end screen on
     */
    private GameView gameView;

    /**
     * Create an end screen which can be displayed onto the game view.
     *
     * @param gameView the game view
     */
    public EndScreen(GameView gameView){
        this.gameView = gameView;
    }

    /**
     * Show the game end screen.
     */
    public void showEndScreen(String message){
        gameView.showEndScreen(message);
    }

}
