frontend/screens deleted

This commit is contained in:
MihailRis
2024-04-22 20:32:28 +03:00
parent 7415726e47
commit 61ca91b525
11 changed files with 272 additions and 262 deletions
+37
View File
@@ -0,0 +1,37 @@
#ifndef FRONTEND_SCREENS_LEVEL_SCREEN_HPP_
#define FRONTEND_SCREENS_LEVEL_SCREEN_HPP_
#include "Screen.hpp"
#include <memory>
class Engine;
class LevelFrontend;
class Hud;
class LevelController;
class WorldRenderer;
class TextureAnimator;
class Level;
class LevelScreen : public Screen {
std::unique_ptr<LevelFrontend> frontend;
std::unique_ptr<Hud> hud;
std::unique_ptr<LevelController> controller;
std::unique_ptr<WorldRenderer> worldRenderer;
std::unique_ptr<TextureAnimator> animator;
bool hudVisible = true;
void updateHotkeys();
public:
LevelScreen(Engine* engine, Level* level);
~LevelScreen();
void update(float delta) override;
void draw(float delta) override;
void onEngineShutdown() override;
LevelController* getLevelController() const;
};
#endif // FRONTEND_SCREENS_LEVEL_SCREEN_HPP_