r-type  0.0.0
R-Type main
Loading...
Searching...
No Matches
ConfigSolo.hpp
Go to the documentation of this file.
1///
2/// @file ConfigSolo.hpp
3/// @brief This file contains the solo configuration scene
4/// @namespace eng
5///
6
7#pragma once
8
9#include <unordered_map>
10
12#include "Interfaces/IAudio.hpp"
13
14namespace cli
15{
16 ///
17 /// @class ConfigSolo
18 /// @brief ConfigSolo scene
19 /// @namespace cli
20 ///
21 class ConfigSolo final : public eng::AScene
22 {
23 public:
24 ConfigSolo(const std::shared_ptr<eng::IRenderer> &renderer, const std::shared_ptr<eng::IAudio> &audio);
25 ~ConfigSolo() override = default;
26
27 ConfigSolo(const ConfigSolo &other) = delete;
28 ConfigSolo &operator=(const ConfigSolo &other) = delete;
29 ConfigSolo(ConfigSolo &&other) = delete;
30 ConfigSolo &operator=(ConfigSolo &&other) = delete;
31
32 void update(float dt, const eng::WindowSize &size) override;
33 void event(const eng::Event &event) override;
34
35 std::function<void(const std::string &option)> onOptionSelected;
36
37 private:
38 std::unordered_map<eng::Key, bool> m_keysPressed;
40 const std::vector<std::string> m_menuOptions = {"Level easy", "Level medium", "Go back to menu"};
41 const std::shared_ptr<eng::IAudio> &m_audio;
42
44 }; // class ConfigSolo
45} // namespace cli
This file contains the Audio interface.
ConfigSolo scene.
std::unordered_map< eng::Key, bool > m_keysPressed
ConfigSolo(ConfigSolo &&other)=delete
ecs::Entity m_fpsEntity
ConfigSolo(const std::shared_ptr< eng::IRenderer > &renderer, const std::shared_ptr< eng::IAudio > &audio)
Definition configSolo.cpp:8
ConfigSolo(const ConfigSolo &other)=delete
std::function< void(const std::string &option)> onOptionSelected
ConfigSolo & operator=(const ConfigSolo &other)=delete
const std::shared_ptr< eng::IAudio > & m_audio
~ConfigSolo() override=default
ConfigSolo & operator=(ConfigSolo &&other)=delete
void update(float dt, const eng::WindowSize &size) override
void event(const eng::Event &event) override
const std::vector< std::string > m_menuOptions
Class for scene.
Definition IScene.hpp:46
This file contains the IScene class.
std::uint32_t Entity
Definition Entity.hpp:13