2021-10-31 22:13:51 +00:00
|
|
|
// Copyright (c) Jon Thysell <http://jonthysell.com>
|
|
|
|
// Licensed under the MIT License.
|
|
|
|
|
2021-12-07 19:07:28 +00:00
|
|
|
/**
|
|
|
|
* @file LevelEndScene.h
|
|
|
|
*
|
|
|
|
* This file provides the functions to initialize, draw, and respond to
|
|
|
|
* clicks when the GameWindow is set to the LevelEnd scene.
|
|
|
|
*/
|
|
|
|
|
2021-10-31 22:13:51 +00:00
|
|
|
#ifndef LEVELENDSCENE_H
|
|
|
|
#define LEVELENDSCENE_H
|
|
|
|
|
|
|
|
#include "GameWindow.h"
|
|
|
|
|
2021-12-07 19:07:28 +00:00
|
|
|
/**
|
|
|
|
* Initializes the LevelEnd scene for the given GameWindow.
|
|
|
|
* @param pGameWindow The GameWindow.
|
|
|
|
*/
|
2021-10-31 22:13:51 +00:00
|
|
|
void LevelEndScene_Init(GameWindow *pGameWindow);
|
2021-12-07 19:07:28 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Draws the LevelEnd scene for the given GameWindow.
|
|
|
|
* @param pGameWindow The GameWindow.
|
|
|
|
* @param fullRefresh Whether or not the whole scene needs to be redrawn.
|
|
|
|
*/
|
2021-10-31 22:13:51 +00:00
|
|
|
void LevelEndScene_Draw(const GameWindow *pGameWindow, bool fullRefresh);
|
2021-12-07 19:07:28 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Handles clicks on the LevelEnd scene for the given GameWindow.
|
|
|
|
* @param pGameWindow The GameWindow.
|
|
|
|
* @param pPosition The local position where the click occured.
|
|
|
|
*/
|
2021-10-31 22:13:51 +00:00
|
|
|
void LevelEndScene_Click(GameWindow *pGameWindow, const Point *pPosition);
|
|
|
|
|
|
|
|
#endif
|