r-type  0.0.0
R-Type main
Loading...
Searching...
No Matches
gme::ConfigSolo Class Referencefinal

ConfigSolo scene. More...

#include <ConfigSolo.hpp>

+ Inheritance diagram for gme::ConfigSolo:
+ Collaboration diagram for gme::ConfigSolo:

Public Member Functions

 ConfigSolo (eng::id assignedId, const std::shared_ptr< eng::IRenderer > &renderer)
 
 ~ConfigSolo () override=default
 
 ConfigSolo (const ConfigSolo &other)=delete
 
ConfigSolooperator= (const ConfigSolo &other)=delete
 
 ConfigSolo (ConfigSolo &&other)=delete
 
ConfigSolooperator= (ConfigSolo &&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(const std::string &option)> onOptionSelected
 

Private Attributes

std::unordered_map< eng::Key, bool > m_keysPressed
 
ecs::Entity m_fpsEntity
 
ecs::Entity m_titleEntity
 
const std::vector< std::string > m_menuOptions = {"Level easy", "Level medium", "Go back to menu"}
 
int m_selectedIndex = 0
 
float m_animationTime = 0.0f
 
float m_titlePulseTime = 0.0f
 
bool m_playMusic = false
 

Additional Inherited Members

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

Detailed Description

ConfigSolo scene.

Definition at line 20 of file ConfigSolo.hpp.

Constructor & Destructor Documentation

◆ ConfigSolo() [1/3]

◆ ~ConfigSolo()

gme::ConfigSolo::~ConfigSolo ( )
overridedefault

◆ ConfigSolo() [2/3]

gme::ConfigSolo::ConfigSolo ( const ConfigSolo & other)
delete

◆ ConfigSolo() [3/3]

gme::ConfigSolo::ConfigSolo ( ConfigSolo && other)
delete

Member Function Documentation

◆ event()

void gme::ConfigSolo::event ( const eng::Event & event)
overridevirtual

◆ operator=() [1/2]

ConfigSolo & gme::ConfigSolo::operator= ( ConfigSolo && other)
delete

◆ operator=() [2/2]

ConfigSolo & gme::ConfigSolo::operator= ( const ConfigSolo & other)
delete

◆ playMusic()

bool & gme::ConfigSolo::playMusic ( )
inline

Definition at line 33 of file ConfigSolo.hpp.

References m_playMusic.

◆ update()

void gme::ConfigSolo::update ( float dt,
const eng::WindowSize & size )
overridevirtual

Member Data Documentation

◆ m_animationTime

float gme::ConfigSolo::m_animationTime = 0.0f
private

Definition at line 44 of file ConfigSolo.hpp.

◆ m_fpsEntity

ecs::Entity gme::ConfigSolo::m_fpsEntity
private

Definition at line 39 of file ConfigSolo.hpp.

◆ m_keysPressed

std::unordered_map<eng::Key, bool> gme::ConfigSolo::m_keysPressed
private

Definition at line 38 of file ConfigSolo.hpp.

◆ m_menuOptions

const std::vector<std::string> gme::ConfigSolo::m_menuOptions = {"Level easy", "Level medium", "Go back to menu"}
private

Definition at line 41 of file ConfigSolo.hpp.

Referenced by ConfigSolo().

◆ m_playMusic

bool gme::ConfigSolo::m_playMusic = false
private

Definition at line 46 of file ConfigSolo.hpp.

Referenced by playMusic().

◆ m_selectedIndex

int gme::ConfigSolo::m_selectedIndex = 0
private

Definition at line 43 of file ConfigSolo.hpp.

Referenced by ConfigSolo().

◆ m_titleEntity

ecs::Entity gme::ConfigSolo::m_titleEntity
private

Definition at line 40 of file ConfigSolo.hpp.

Referenced by ConfigSolo().

◆ m_titlePulseTime

float gme::ConfigSolo::m_titlePulseTime = 0.0f
private

Definition at line 45 of file ConfigSolo.hpp.

◆ onOptionSelected

std::function<void(const std::string &option)> gme::ConfigSolo::onOptionSelected

Definition at line 35 of file ConfigSolo.hpp.


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