2022-08-31 00:05:08 -04:00
|
|
|
#ifndef ALAI_GAME_OVER_GAME_OVER_SCREEN_H
|
|
|
|
#define ALAI_GAME_OVER_GAME_OVER_SCREEN_H
|
2022-08-12 21:50:48 -04:00
|
|
|
|
2022-08-27 22:34:18 -04:00
|
|
|
#include <CanvasLayer.hpp>
|
2022-08-28 01:08:04 -04:00
|
|
|
#include <Godot.hpp>
|
2022-08-27 18:14:21 -04:00
|
|
|
#include <ResourceLoader.hpp>
|
|
|
|
|
2022-08-28 01:08:04 -04:00
|
|
|
namespace alai
|
2022-08-12 21:50:48 -04:00
|
|
|
{
|
2022-08-28 01:08:04 -04:00
|
|
|
/**
|
|
|
|
* @brief This class controls what happens when the Coin is in the collected .
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
class GameOverScreen : public godot::CanvasLayer
|
|
|
|
{
|
|
|
|
GODOT_CLASS(GameOverScreen, godot::CanvasLayer)
|
|
|
|
|
|
|
|
private:
|
|
|
|
godot::ResourceLoader *_resource_loader;
|
|
|
|
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* @brief This method registers classes with Godot.
|
|
|
|
*
|
|
|
|
* @details This method registers methods, properties, and signals with the Godot engine.
|
|
|
|
*/
|
|
|
|
static void _register_methods();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Construct a new GameOverScreen object.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
GameOverScreen();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Destroy the GameOverScreen object.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
~GameOverScreen();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Initialize the class from Godot.
|
|
|
|
*
|
|
|
|
* @details This method is called just once when the Godot engine connects to the instance of the class.
|
|
|
|
*/
|
|
|
|
void _init();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Called when the collected of the coin is entered.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void _ready();
|
|
|
|
void _on_player_died();
|
|
|
|
void _on_restart_button_pressed();
|
|
|
|
void connect_signal();
|
|
|
|
};
|
2022-08-12 21:50:48 -04:00
|
|
|
}
|
|
|
|
|
2022-08-28 01:08:04 -04:00
|
|
|
#endif
|