Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
GameOverScene.hpp
Go to the documentation of this file.
1
8#ifndef RTYPE_CLIENT_SCENES_GAMEOVERSCENE_HPP_
9 #define RTYPE_CLIENT_SCENES_GAMEOVERSCENE_HPP_
10
11 #include "Interfaces/IScene.hpp"
12 #include "RType/ECS/Registry.hpp"
13 #include "UI/UiFactory.hpp"
14 #include "Utils/GameState.hpp"
15 #include "Systems/NetworkSyncSystem.hpp"
17 #include "Core/Settings.hpp"
18 #include <SFML/Graphics.hpp>
19 #include <functional>
20
21namespace rtp::client {
22 namespace scenes {
24 {
25 public:
26 GameOverScene(ecs::Registry& UiRegistry,
27 Settings& settings,
28 TranslationManager& translationManager,
29 NetworkSyncSystem& network,
30 graphics::UiFactory& uiFactory,
31 std::function<void(GameState)> changeState);
32
33 using ChangeStateFn = std::function<void(GameState)>;
34
35 void onEnter(void) override;
36 void onExit(void) override;
37 void handleEvent(const sf::Event& event) override;
38 void update(float dt) override;
39
40 private:
47 };
48 } // namespace scenes
49} // namespace rtp::client
50
51#endif // RTYPE_CLIENT_SCENES_GAMEOVERSCENE_HPP_
System to handle network-related operations on the client side.
Manages game settings and preferences.
Definition Settings.hpp:67
Manages game translations for all UI elements.
Factory class for creating UI components in the ECS registry.
Definition UiFactory.hpp:72
Interface for different scenes in the client application.
Definition IScene.hpp:23
TranslationManager & _translationManager
void onEnter(void) override
Called when the scene is entered.
void onExit(void) override
Called when the scene is exited.
std::function< void(GameState)> ChangeStateFn
void update(float dt) override
Update the scene state.
void handleEvent(const sf::Event &event) override
Handle an incoming event.
R-Type client namespace.