Game over scene displayed when all players die. More...
#include <GameOver.hpp>
Inheritance diagram for gme::GameOverScene:
Collaboration diagram for gme::GameOverScene:Public Member Functions | |
| GameOverScene (eng::id assignedId, const std::shared_ptr< eng::IRenderer > &renderer) | |
| ~GameOverScene () override=default | |
| GameOverScene (const GameOverScene &other)=delete | |
| GameOverScene & | operator= (const GameOverScene &other)=delete |
| GameOverScene (GameOverScene &&other)=delete | |
| GameOverScene & | operator= (GameOverScene &&other)=delete |
| void | update (float dt, const eng::WindowSize &size) override |
| void | event (const eng::Event &event) override |
| bool & | playMusic () |
Public Member Functions inherited from eng::AScene | |
| AScene (const id assignedId) | |
| ~AScene () override=default | |
| AScene (const AScene &other)=delete | |
| AScene (AScene &&other)=delete | |
| AScene & | operator= (const AScene &other)=delete |
| AScene & | operator= (AScene &&other)=delete |
| std::string & | getName () override |
| id | getId () const override |
| ecs::Registry & | getRegistry () override |
| void | setName (const std::string &newName) override |
| void | addSystem (std::unique_ptr< ecs::ISystem > system) override |
| void | updateSystems (const float dt) override |
Public Member Functions inherited from eng::IScene | |
| virtual | ~IScene ()=default |
Public Attributes | |
| std::function< void()> | onBackToMenu |
Private Attributes | |
| const std::shared_ptr< eng::IRenderer > & | m_renderer |
| bool | m_playMusic = false |
| float | m_animationTime = 0.0f |
Additional Inherited Members | |
Protected Attributes inherited from eng::AScene | |
| utl::EventBus & | m_eventBus = utl::EventBus::getInstance() |
| std::uint32_t | m_eventComponentId = 0 |
Game over scene displayed when all players die.
Definition at line 20 of file GameOver.hpp.
| gme::GameOverScene::GameOverScene | ( | eng::id | assignedId, |
| const std::shared_ptr< eng::IRenderer > & | renderer ) |
Definition at line 11 of file gameOver.cpp.
References eng::Color::a, eng::Color::b, utl::Path::Font::FONTS_RTYPE, eng::Color::g, ecs::IComponent::id, eng::Color::r, RED_COLOR, and WHITE_COLOR.
|
overridedefault |
|
delete |
|
delete |
|
overridevirtual |
Implements eng::IScene.
Definition at line 89 of file gameOver.cpp.
References eng::Escape, event(), eng::KeyPressed, and onBackToMenu.
Referenced by event().
Here is the call graph for this function:
Here is the caller graph for this function:
|
delete |
|
delete |
|
inline |
Definition at line 34 of file GameOver.hpp.
References m_playMusic.
|
overridevirtual |
Implements eng::IScene.
Definition at line 66 of file gameOver.cpp.
References ecs::Color::a, and m_animationTime.
|
private |
Definition at line 41 of file GameOver.hpp.
Referenced by update().
|
private |
Definition at line 40 of file GameOver.hpp.
Referenced by playMusic().
|
private |
Definition at line 39 of file GameOver.hpp.
| std::function<void()> gme::GameOverScene::onBackToMenu |
Definition at line 36 of file GameOver.hpp.
Referenced by event().