R-Type
WinLoseScene.hpp
Go to the documentation of this file.
1 /*
2 ** EPITECH PROJECT, 2023
3 ** B-CPP-500-PAR-5-1-rtype-timothe.zheng
4 ** File description:
5 ** WinLoseScene
6 */
7 
8 #ifndef WINLOSESCENE_HPP_
9 #define WINLOSESCENE_HPP_
10 #include "utils/IScene.hpp"
11 #include "GameEngine.hpp"
12 
13 class WinLoseScene : public GameEngine::IScene
14 {
15  public:
16  WinLoseScene(GameEngine::GameEngine &gameEngine, bool &win, bool &isOpen)
17  : _gameEngine(gameEngine), _win(win), _isOpen(isOpen)
18  {};
19  ~WinLoseScene() = default;
20  void load() override;
21  void unload() override;
22  void update() override;
23  void addEntityToUnload(GameEngine::Entity entity) override;
24 
25  private:
26  bool &_win;
27  bool &_isOpen;
28  GameEngine::GameEngine &_gameEngine;
29  std::vector<GameEngine::Entity> _entities;
30 };
31 
32 #endif /* !WINLOSESCENE_HPP_ */
Entity class for the game engine.
Definition: Entity.hpp:18
Game engine class, will manage all the necessary classes for the game.
Definition: GameEngine.hpp:40
Definition: IScene.hpp:15
Definition: WinLoseScene.hpp:15
void load() override
void unload() override
void update() override
~WinLoseScene()=default
WinLoseScene(GameEngine::GameEngine &gameEngine, bool &win, bool &isOpen)
Definition: WinLoseScene.hpp:16
void addEntityToUnload(GameEngine::Entity entity) override