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