r-type  0.0.0
R-Type main
Loading...
Searching...
No Matches
FlappyBirdClientSolo.hpp
Go to the documentation of this file.
1///
2/// @file FlappyBirdClientSolo.hpp
3/// @brief This file contains the FlappyBirdClientSolo class declaration
4/// @namespace gme
5///
6
7#pragma once
8
10
11namespace gme
12{
13
14 ///
15 /// @class FlappyBirdClientSolo
16 /// @brief Class for the FlappyBirdClientSolo plugin
17 /// @namespace gme
18 ///
19 class FlappyBirdClientSolo final : public IGameClient
20 {
21
22 public:
24 ~FlappyBirdClientSolo() override = default;
25
30
31 [[nodiscard]] const std::string getName() const override { return "RType_Client_Solo"; }
32 [[nodiscard]] utl::PluginType getType() const override { return utl::PluginType::GAME_CLIENT; }
33
34 void update(float deltaTime, unsigned int width, unsigned int height) override;
35 void init(eng::Engine &engine, utl::cli::AppConfig &appConfig, bool &showDebug, const eng::id menuSceneId,
36 const eng::id winSceneId) override
37 {
38 m_engine = &engine;
39 m_appConfig = &appConfig;
40 m_showDebug = &showDebug;
41 setupScenes(showDebug, menuSceneId);
42 }
43
44 [[nodiscard]] unsigned int getMainSceneId() const override { return m_mainSceneId; }
45
46 private:
50 bool *m_showDebug = nullptr;
51
52 void setupScenes(bool &showDebug, eng::id menuSceneId);
53 }; // class FlappyBirdClientSolo
54} // namespace gme
This file contains the Game interface.
Class for the engine.
Definition Engine.hpp:34
Class for the FlappyBirdClientSolo plugin.
utl::PluginType getType() const override
FlappyBirdClientSolo & operator=(const FlappyBirdClientSolo &)=delete
void setupScenes(bool &showDebug, eng::id menuSceneId)
FlappyBirdClientSolo(FlappyBirdClientSolo &&)=delete
unsigned int getMainSceneId() const override
void update(float deltaTime, unsigned int width, unsigned int height) override
FlappyBirdClientSolo(const FlappyBirdClientSolo &)=delete
utl::cli::AppConfig * m_appConfig
const std::string getName() const override
~FlappyBirdClientSolo() override=default
FlappyBirdClientSolo & operator=(FlappyBirdClientSolo &&)=delete
void init(eng::Engine &engine, utl::cli::AppConfig &appConfig, bool &showDebug, const eng::id menuSceneId, const eng::id winSceneId) override
Interface for the games.
unsigned int id
Definition IScene.hpp:20
PluginType
Definition IPlugin.hpp:22