#include <GameSolo.hpp>
Inheritance diagram for gme::GameSolo:
Collaboration diagram for gme::GameSolo:Public Member Functions | |
| GameSolo (eng::id assignedId, const std::shared_ptr< eng::IRenderer > &renderer, const std::shared_ptr< eng::IAudio > &audio, int skinIndex, bool &showDebug) | |
| ~GameSolo () override=default | |
| GameSolo (const GameSolo &other)=delete | |
| GameSolo & | operator= (const GameSolo &other)=delete |
| GameSolo (GameSolo &&other)=delete | |
| GameSolo & | operator= (GameSolo &&other)=delete |
| void | update (float dt, const eng::WindowSize &size) override |
| void | event (const eng::Event &event) override |
| bool & | playMusic () |
| void | updatePlayerSkin () |
Public Member Functions inherited from eng::AScene | |
| AScene (const id assignedId) | |
| ~AScene () override=default | |
| AScene (const AScene &other)=delete | |
| AScene (AScene &&other)=delete | |
| AScene & | operator= (const AScene &other)=delete |
| AScene & | operator= (AScene &&other)=delete |
| std::string & | getName () override |
| id | getId () const override |
| ecs::Registry & | getRegistry () 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 |
Private Member Functions | |
| void | handlePlayerInputs (ecs::Registry ®istry, float dt) |
| void | preloadCommonTextures () |
Static Private Member Functions | |
| static ecs::Entity | createPlayer (ecs::Registry ®istry) |
Private Attributes | |
| const std::shared_ptr< eng::IRenderer > & | m_renderer |
| const std::shared_ptr< eng::IAudio > & | m_audio |
| std::unordered_map< eng::Key, bool > | m_keysPressed |
| ecs::Entity | m_playerEntity |
| int | m_skinIndex |
| int | m_lastAppliedSkinIndex = -1 |
| bool & | m_showDebug |
| bool | m_playmusic = false |
| std::unique_ptr< StageManager > | m_stageManager |
| std::unordered_set< std::string > | m_loadedTextures |
| std::unordered_set< std::string > | m_loadedFonts |
Additional Inherited Members | |
Protected Attributes inherited from eng::AScene | |
| utl::EventBus & | m_eventBus = utl::EventBus::getInstance() |
| std::uint32_t | m_eventComponentId = 0 |
GameSolo scene.
Definition at line 24 of file GameSolo.hpp.
| gme::GameSolo::GameSolo | ( | eng::id | assignedId, |
| const std::shared_ptr< eng::IRenderer > & | renderer, | ||
| const std::shared_ptr< eng::IAudio > & | audio, | ||
| int | skinIndex, | ||
| bool & | showDebug ) |
Definition at line 8 of file gameSolo.cpp.
References utl::Path::Audio::AUDIO_BEGIN, createPlayer(), ecs::IComponent::id, m_loadedFonts, m_loadedTextures, m_playerEntity, m_stageManager, preloadCommonTextures(), ecs::Scale::x, ecs::Transform::x, and ecs::Transform::y.
Here is the call graph for this function:
|
overridedefault |
|
delete |
|
delete |
|
staticprivate |
Definition at line 260 of file gameSolo.cpp.
References utl::calculateHitboxOffsets(), ecs::Registry::createEntity(), utl::GameConfig::Beam::MAX_CHARGE, utl::GameConfig::Hitbox::PLAYER_RADIUS, utl::GameConfig::Player::SCALE, utl::GameConfig::Player::SPRITE_HEIGHT, utl::GameConfig::Player::SPRITE_WIDTH, utl::Path::Texture::TEXTURE_PLAYER, and ecs::Registry::EntityBuilder::with().
Referenced by GameSolo().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Implements eng::IScene.
Definition at line 202 of file gameSolo.cpp.
References eng::Down, eng::Event::key, eng::KeyPressed, eng::KeyReleased, eng::Left, eng::Right, eng::Event::type, and eng::Up.
|
private |
Definition at line 129 of file gameSolo.cpp.
References utl::GameConfig::Player::DIAGONAL_SPEED_MULTIPLIER, eng::Down, ecs::Registry::getComponent(), eng::Left, eng::Right, utl::GameConfig::Player::SCALE, utl::GameConfig::Player::SPEED, utl::GameConfig::Player::SPRITE_HEIGHT, utl::GameConfig::Player::SPRITE_WIDTH, eng::Up, ecs::Transform::x, and ecs::Transform::y.
Here is the call graph for this function:
|
inline |
Definition at line 39 of file GameSolo.hpp.
References m_playmusic.
|
private |
Definition at line 107 of file gameSolo.cpp.
References utl::Path::Texture::TEXTURE_PLAYER, utl::Path::Texture::TEXTURE_SHOOT, utl::Path::Texture::TEXTURE_SHOOT_CHARGED, utl::Path::Texture::TEXTURE_STAGE1_CEILING, and utl::Path::Texture::TEXTURE_STAGE1_FLOOR.
Referenced by GameSolo().
Here is the caller graph for this function:
|
overridevirtual |
Implements eng::IScene.
Definition at line 195 of file gameSolo.cpp.
| void gme::GameSolo::updatePlayerSkin | ( | ) |
Definition at line 249 of file gameSolo.cpp.
References utl::GameConfig::Player::SPRITE_HEIGHT.
|
private |
Definition at line 48 of file GameSolo.hpp.
|
private |
Definition at line 49 of file GameSolo.hpp.
|
private |
Definition at line 52 of file GameSolo.hpp.
|
private |
Definition at line 59 of file GameSolo.hpp.
Referenced by GameSolo().
|
private |
Definition at line 58 of file GameSolo.hpp.
Referenced by GameSolo().
|
private |
Definition at line 50 of file GameSolo.hpp.
Referenced by GameSolo().
|
private |
Definition at line 54 of file GameSolo.hpp.
Referenced by playMusic().
|
private |
Definition at line 47 of file GameSolo.hpp.
|
private |
Definition at line 53 of file GameSolo.hpp.
|
private |
Definition at line 51 of file GameSolo.hpp.
|
private |
Definition at line 55 of file GameSolo.hpp.
Referenced by GameSolo().