Win condition scene with beautiful animations. More...
#include <WinCondition.hpp>
Inheritance diagram for cli::WinCondition:
Collaboration diagram for cli::WinCondition:Classes | |
| struct | Particle |
Public Member Functions | |
| WinCondition (eng::id assignedId, const std::shared_ptr< eng::IRenderer > &renderer, const std::shared_ptr< eng::IAudio > &audio) | |
| ~WinCondition () override=default | |
| WinCondition (const WinCondition &other)=delete | |
| WinCondition & | operator= (const WinCondition &other)=delete |
| WinCondition (WinCondition &&other)=delete | |
| WinCondition & | operator= (WinCondition &&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()> | onLeave |
Private Attributes | |
| std::shared_ptr< eng::IRenderer > | m_renderer |
| std::shared_ptr< eng::IAudio > | m_audio |
| float | m_elapsedTime = 0.F |
| float | m_titlePulseTime = 0.F |
| float | m_particleSpawnTimer = 0.F |
| bool | m_playMusic = false |
| ecs::Entity | m_titleEntity = 0 |
| ecs::Entity | m_subtitleEntity = 0 |
| ecs::Entity | m_instructionEntity = 0 |
| ecs::Entity | m_soundEntity = 0 |
| ecs::Entity | m_iconEntity = 0 |
| std::vector< Particle > | m_particles |
| utl::Clock | m_clock |
Additional Inherited Members | |
Protected Attributes inherited from eng::AScene | |
| utl::EventBus & | m_eventBus = utl::EventBus::getInstance() |
| std::uint32_t | m_eventComponentId = 0 |
Win condition scene with beautiful animations.
Definition at line 22 of file WinCondition.hpp.
| cli::WinCondition::WinCondition | ( | eng::id | assignedId, |
| const std::shared_ptr< eng::IRenderer > & | renderer, | ||
| const std::shared_ptr< eng::IAudio > & | audio ) |
Definition at line 10 of file winCondition.cpp.
References eng::Color::a, eng::Color::b, utl::Config::Color::CYAN_ELECTRIC, utl::Path::Font::FONTS_RTYPE, eng::Color::g, utl::Config::Color::GRAY_BLUE_SUBTLE, utl::Config::Color::GREEN, utl::Path::Icons::ICON_APP, ecs::IComponent::id, m_iconEntity, m_instructionEntity, m_soundEntity, m_subtitleEntity, m_titleEntity, eng::Color::r, utl::Config::Color::WHITE_LOW, and ecs::Scale::x.
|
overridedefault |
|
delete |
|
delete |
|
overridevirtual |
Implements eng::IScene.
Definition at line 258 of file winCondition.cpp.
References eng::Enter, eng::Event::key, eng::KeyPressed, and eng::Event::type.
|
delete |
|
delete |
|
inline |
Definition at line 37 of file WinCondition.hpp.
References m_playMusic.
|
overridevirtual |
Implements eng::IScene.
Definition at line 116 of file winCondition.cpp.
References ecs::Color::a, eng::Color::a, eng::Color::b, utl::Config::Color::CYAN_ELECTRIC, cli::WinCondition::Particle::entity, eng::Color::g, eng::WindowSize::height, utl::Path::Icons::ICON_APP, cli::WinCondition::Particle::lifetime, cli::WinCondition::Particle::maxLifetime, eng::Color::r, cli::WinCondition::Particle::vx, cli::WinCondition::Particle::vy, eng::WindowSize::width, cli::WinCondition::Particle::x, and cli::WinCondition::Particle::y.
|
private |
Definition at line 54 of file WinCondition.hpp.
|
private |
Definition at line 69 of file WinCondition.hpp.
|
private |
Definition at line 55 of file WinCondition.hpp.
|
private |
Definition at line 65 of file WinCondition.hpp.
Referenced by WinCondition().
|
private |
Definition at line 63 of file WinCondition.hpp.
Referenced by WinCondition().
|
private |
Definition at line 67 of file WinCondition.hpp.
|
private |
Definition at line 57 of file WinCondition.hpp.
|
private |
Definition at line 59 of file WinCondition.hpp.
Referenced by playMusic().
|
private |
Definition at line 53 of file WinCondition.hpp.
|
private |
Definition at line 64 of file WinCondition.hpp.
Referenced by WinCondition().
|
private |
Definition at line 62 of file WinCondition.hpp.
Referenced by WinCondition().
|
private |
Definition at line 61 of file WinCondition.hpp.
Referenced by WinCondition().
|
private |
Definition at line 56 of file WinCondition.hpp.
| std::function<void()> cli::WinCondition::onLeave |
Definition at line 39 of file WinCondition.hpp.