r-type  0.0.0
R-Type main
Loading...
Searching...
No Matches
cli::WinCondition Class Referencefinal

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
 
WinConditionoperator= (const WinCondition &other)=delete
 
 WinCondition (WinCondition &&other)=delete
 
WinConditionoperator= (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
 
ASceneoperator= (const AScene &other)=delete
 
ASceneoperator= (AScene &&other)=delete
 
std::string & getName () override
 
id getId () const override
 
ecs::RegistrygetRegistry () 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::IRendererm_renderer
 
std::shared_ptr< eng::IAudiom_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< Particlem_particles
 
utl::Clock m_clock
 

Additional Inherited Members

- Protected Attributes inherited from eng::AScene
utl::EventBusm_eventBus = utl::EventBus::getInstance()
 
std::uint32_t m_eventComponentId = 0
 

Detailed Description

Win condition scene with beautiful animations.

Definition at line 22 of file WinCondition.hpp.

Constructor & Destructor Documentation

◆ WinCondition() [1/3]

◆ ~WinCondition()

cli::WinCondition::~WinCondition ( )
overridedefault

◆ WinCondition() [2/3]

cli::WinCondition::WinCondition ( const WinCondition & other)
delete

◆ WinCondition() [3/3]

cli::WinCondition::WinCondition ( WinCondition && other)
delete

Member Function Documentation

◆ event()

void cli::WinCondition::event ( const eng::Event & event)
overridevirtual

Implements eng::IScene.

Definition at line 258 of file winCondition.cpp.

References eng::Enter, eng::Event::key, eng::KeyPressed, and eng::Event::type.

◆ operator=() [1/2]

WinCondition & cli::WinCondition::operator= ( const WinCondition & other)
delete

◆ operator=() [2/2]

WinCondition & cli::WinCondition::operator= ( WinCondition && other)
delete

◆ playMusic()

bool & cli::WinCondition::playMusic ( )
inline

Definition at line 37 of file WinCondition.hpp.

References m_playMusic.

◆ update()

Member Data Documentation

◆ m_audio

std::shared_ptr<eng::IAudio> cli::WinCondition::m_audio
private

Definition at line 54 of file WinCondition.hpp.

◆ m_clock

utl::Clock cli::WinCondition::m_clock
private

Definition at line 69 of file WinCondition.hpp.

◆ m_elapsedTime

float cli::WinCondition::m_elapsedTime = 0.F
private

Definition at line 55 of file WinCondition.hpp.

◆ m_iconEntity

ecs::Entity cli::WinCondition::m_iconEntity = 0
private

Definition at line 65 of file WinCondition.hpp.

Referenced by WinCondition().

◆ m_instructionEntity

ecs::Entity cli::WinCondition::m_instructionEntity = 0
private

Definition at line 63 of file WinCondition.hpp.

Referenced by WinCondition().

◆ m_particles

std::vector<Particle> cli::WinCondition::m_particles
private

Definition at line 67 of file WinCondition.hpp.

◆ m_particleSpawnTimer

float cli::WinCondition::m_particleSpawnTimer = 0.F
private

Definition at line 57 of file WinCondition.hpp.

◆ m_playMusic

bool cli::WinCondition::m_playMusic = false
private

Definition at line 59 of file WinCondition.hpp.

Referenced by playMusic().

◆ m_renderer

std::shared_ptr<eng::IRenderer> cli::WinCondition::m_renderer
private

Definition at line 53 of file WinCondition.hpp.

◆ m_soundEntity

ecs::Entity cli::WinCondition::m_soundEntity = 0
private

Definition at line 64 of file WinCondition.hpp.

Referenced by WinCondition().

◆ m_subtitleEntity

ecs::Entity cli::WinCondition::m_subtitleEntity = 0
private

Definition at line 62 of file WinCondition.hpp.

Referenced by WinCondition().

◆ m_titleEntity

ecs::Entity cli::WinCondition::m_titleEntity = 0
private

Definition at line 61 of file WinCondition.hpp.

Referenced by WinCondition().

◆ m_titlePulseTime

float cli::WinCondition::m_titlePulseTime = 0.F
private

Definition at line 56 of file WinCondition.hpp.

◆ onLeave

std::function<void()> cli::WinCondition::onLeave

Definition at line 39 of file WinCondition.hpp.


The documentation for this class was generated from the following files: