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

Menu scene. More...

#include <Menu.hpp>

+ Inheritance diagram for cli::Menu:
+ Collaboration diagram for cli::Menu:

Public Member Functions

 Menu (eng::id assignedId, const std::shared_ptr< eng::IRenderer > &renderer)
 
 ~Menu () override=default
 
 Menu (const Menu &other)=delete
 
Menuoperator= (const Menu &other)=delete
 
 Menu (Menu &&other)=delete
 
Menuoperator= (Menu &&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
 
const std::vector< std::string > m_menuOptions = {"Solo", "Multi", "Settings"}
 
int m_selectedIndex = 0
 
float m_animationTime = 0.0f
 
float m_titlePulseTime = 0.0f
 
ecs::Entity m_titleEntity
 
const std::vector< std::string > m_contributors = {"Elliot", "Arthur", "Moana", "Aaron"}
 
ecs::Entity m_contributorsEntity
 
float m_contributorsOffset = 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

Menu scene.

Definition at line 21 of file Menu.hpp.

Constructor & Destructor Documentation

◆ Menu() [1/3]

◆ ~Menu()

cli::Menu::~Menu ( )
overridedefault

◆ Menu() [2/3]

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

◆ Menu() [3/3]

cli::Menu::Menu ( Menu && other)
delete

Member Function Documentation

◆ event()

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ playMusic()

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

Definition at line 35 of file Menu.hpp.

References m_playMusic.

◆ update()

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

Member Data Documentation

◆ m_animationTime

float cli::Menu::m_animationTime = 0.0f
private

Definition at line 44 of file Menu.hpp.

◆ m_contributors

const std::vector<std::string> cli::Menu::m_contributors = {"Elliot", "Arthur", "Moana", "Aaron"}
private

Definition at line 48 of file Menu.hpp.

Referenced by Menu().

◆ m_contributorsEntity

ecs::Entity cli::Menu::m_contributorsEntity
private

Definition at line 49 of file Menu.hpp.

Referenced by Menu().

◆ m_contributorsOffset

float cli::Menu::m_contributorsOffset = 0.0f
private

Definition at line 50 of file Menu.hpp.

◆ m_keysPressed

std::unordered_map<eng::Key, bool> cli::Menu::m_keysPressed
private

Definition at line 40 of file Menu.hpp.

◆ m_menuOptions

const std::vector<std::string> cli::Menu::m_menuOptions = {"Solo", "Multi", "Settings"}
private

Definition at line 41 of file Menu.hpp.

Referenced by Menu().

◆ m_playMusic

bool cli::Menu::m_playMusic = false
private

Definition at line 51 of file Menu.hpp.

Referenced by playMusic().

◆ m_selectedIndex

int cli::Menu::m_selectedIndex = 0
private

Definition at line 43 of file Menu.hpp.

Referenced by Menu().

◆ m_titleEntity

ecs::Entity cli::Menu::m_titleEntity
private

Definition at line 46 of file Menu.hpp.

Referenced by Menu().

◆ m_titlePulseTime

float cli::Menu::m_titlePulseTime = 0.0f
private

Definition at line 45 of file Menu.hpp.

◆ onOptionSelected

std::function<void(const std::string &option)> cli::Menu::onOptionSelected

Definition at line 37 of file Menu.hpp.


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