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

Intro scene. More...

#include <Intro.hpp>

+ Inheritance diagram for cli::Intro:
+ Collaboration diagram for cli::Intro:

Public Member Functions

 Intro (eng::id assignedId, const std::shared_ptr< eng::IRenderer > &renderer, const std::shared_ptr< eng::IAudio > &audio)
 
 ~Intro () override=default
 
 Intro (const Intro &other)=delete
 
Introoperator= (const Intro &other)=delete
 
 Intro (Intro &&other)=delete
 
Introoperator= (Intro &&other)=delete
 
void update (float dt, const eng::WindowSize &size) override
 
void event (const eng::Event &event) override
 
- 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
 
ecs::Entity m_logoEntity = 0
 
ecs::Entity m_soundEntity = 0
 
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

Intro scene.

Definition at line 20 of file Intro.hpp.

Constructor & Destructor Documentation

◆ Intro() [1/3]

cli::Intro::Intro ( eng::id assignedId,
const std::shared_ptr< eng::IRenderer > & renderer,
const std::shared_ptr< eng::IAudio > & audio )

◆ ~Intro()

cli::Intro::~Intro ( )
overridedefault

◆ Intro() [2/3]

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

◆ Intro() [3/3]

cli::Intro::Intro ( Intro && other)
delete

Member Function Documentation

◆ event()

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

Implements eng::IScene.

Definition at line 100 of file intro.cpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ update()

void cli::Intro::update ( float dt,
const eng::WindowSize & size )
overridevirtual

Implements eng::IScene.

Definition at line 69 of file intro.cpp.

References ecs::Color::a.

Member Data Documentation

◆ m_audio

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

Definition at line 39 of file Intro.hpp.

◆ m_clock

utl::Clock cli::Intro::m_clock
private

Definition at line 44 of file Intro.hpp.

◆ m_elapsedTime

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

Definition at line 40 of file Intro.hpp.

◆ m_logoEntity

ecs::Entity cli::Intro::m_logoEntity = 0
private

Definition at line 42 of file Intro.hpp.

Referenced by Intro().

◆ m_renderer

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

Definition at line 38 of file Intro.hpp.

◆ m_soundEntity

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

Definition at line 43 of file Intro.hpp.

Referenced by Intro().

◆ onLeave

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

Definition at line 35 of file Intro.hpp.


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