ConfigFlappy scene.
More...
#include <ConfigFlappy.hpp>
|
| std::function< void(const std::string &option, const std::string &playerName, int skinIndex)> | onOptionSelected |
| |
ConfigFlappy scene.
Definition at line 20 of file ConfigFlappy.hpp.
◆ ConfigFlappy() [1/3]
| gme::ConfigFlappy::ConfigFlappy |
( |
eng::id | assignedId, |
|
|
const std::shared_ptr< eng::IRenderer > & | renderer ) |
Definition at line 128 of file configFlappy.cpp.
References eng::Color::a, eng::Color::b, utl::Config::Color::CYAN_ELECTRIC, utl::Path::Font::FONTS_RTYPE, eng::Color::g, ecs::IComponent::id, m_menuOptions, m_playerName, m_playerNameValueEntity, m_selectedIndex, m_skinIndex, m_skinSpriteEntity, m_skinValueEntity, m_titleEntity, eng::Color::r, utl::Config::Color::TEXT_VALUE_COLOR, utl::Path::Texture::TEXTURE_PLAYER, updateValueDisplay(), utl::Config::Color::WHITE, and ecs::Scale::x.
◆ ~ConfigFlappy()
| gme::ConfigFlappy::~ConfigFlappy |
( |
| ) |
|
|
overridedefault |
◆ ConfigFlappy() [2/3]
| gme::ConfigFlappy::ConfigFlappy |
( |
const ConfigFlappy & | other | ) |
|
|
delete |
◆ ConfigFlappy() [3/3]
◆ event()
| void gme::ConfigFlappy::event |
( |
const eng::Event & | event | ) |
|
|
overridevirtual |
Implements eng::IScene.
Definition at line 284 of file configFlappy.cpp.
References eng::Delete, eng::Down, eng::Enter, eng::Event::key, eng::KeyPressed, eng::KeyReleased, keyToChar(), eng::Left, eng::Right, eng::Space, eng::Event::type, and eng::Up.
◆ getCurrentEditField()
| std::string & gme::ConfigFlappy::getCurrentEditField |
( |
| ) |
|
|
private |
◆ keyToChar()
| char gme::ConfigFlappy::keyToChar |
( |
eng::Key | key | ) |
const |
|
private |
Definition at line 8 of file configFlappy.cpp.
References eng::A, eng::B, eng::C, eng::D, eng::E, eng::F, eng::G, eng::H, eng::I, eng::J, eng::K, eng::L, eng::M, eng::N, eng::Num0, eng::Num1, eng::Num2, eng::Num3, eng::Num4, eng::Num5, eng::Num6, eng::Num7, eng::Num8, eng::Num9, eng::O, eng::P, eng::Q, eng::R, eng::S, eng::Space, eng::T, eng::U, eng::V, eng::W, eng::X, eng::Y, and eng::Z.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ playMusic()
| bool & gme::ConfigFlappy::playMusic |
( |
| ) |
|
|
inline |
◆ update()
◆ updateValueDisplay()
| void gme::ConfigFlappy::updateValueDisplay |
( |
| ) |
|
|
private |
◆ m_animationTime
| float gme::ConfigFlappy::m_animationTime = 0.0f |
|
private |
◆ m_fpsEntity
◆ m_keysPressed
| std::unordered_map<eng::Key, bool> gme::ConfigFlappy::m_keysPressed |
|
private |
◆ m_menuOptions
| const std::vector<std::string> gme::ConfigFlappy::m_menuOptions = {"Player Name", "Skin", "Start Game", "Go back to menu"} |
|
private |
◆ m_playerName
| std::string gme::ConfigFlappy::m_playerName = "Player" |
|
private |
◆ m_playerNameValueEntity
◆ m_playMusic
| bool gme::ConfigFlappy::m_playMusic = false |
|
private |
◆ m_renderer
◆ m_selectedIndex
| int gme::ConfigFlappy::m_selectedIndex = 0 |
|
private |
◆ m_skinIndex
| int gme::ConfigFlappy::m_skinIndex = 0 |
|
private |
◆ m_skinSpriteEntity
◆ m_skinValueEntity
◆ m_titleEntity
◆ m_titlePulseTime
| float gme::ConfigFlappy::m_titlePulseTime = 0.0f |
|
private |
◆ onOptionSelected
| std::function<void(const std::string &option, const std::string &playerName, int skinIndex)> gme::ConfigFlappy::onOptionSelected |
The documentation for this class was generated from the following files:
- /home/runner/work/R-Type/R-Type/plugins/Game/FlappyBird/Client/Solo/include/FlappyBirdClientSolo/Scenes/ConfigFlappy.hpp
- /home/runner/work/R-Type/R-Type/plugins/Game/FlappyBird/Client/Solo/src/scenes/configFlappy.cpp