Line |
Branch |
Exec |
Source |
1 |
|
|
/* |
2 |
|
|
** EPITECH PROJECT, 2024 |
3 |
|
|
** zappy |
4 |
|
|
** File description: |
5 |
|
|
** quit |
6 |
|
|
*/ |
7 |
|
|
|
8 |
|
|
#ifndef MENU_HPP_ |
9 |
|
|
#define MENU_HPP_ |
10 |
|
|
|
11 |
|
|
#include <memory> |
12 |
|
|
|
13 |
|
|
#include "IScene.hpp" |
14 |
|
|
#include "../ui/Button.hpp" |
15 |
|
|
#include "../ui/Input.hpp" |
16 |
|
|
|
17 |
|
|
class Core; |
18 |
|
|
class Menu : public IScene { |
19 |
|
|
public: |
20 |
|
|
Menu(Core *core); |
21 |
|
✗ |
~Menu() {} |
22 |
|
|
|
23 |
|
|
bool update(sf::Event event, sf::RenderWindow &window) override; |
24 |
|
✗ |
void update(float /*fElapsedTime*/) override {} |
25 |
|
|
void draw(sf::RenderWindow &window) override; |
26 |
|
✗ |
void init() override {} |
27 |
|
|
void getBackHome(); |
28 |
|
|
protected: |
29 |
|
|
private: |
30 |
|
|
std::vector<std::shared_ptr<Button>> _resolutionButtons; |
31 |
|
|
std::shared_ptr<Button> _fullscreenButton; |
32 |
|
|
std::shared_ptr<Button> _homeButton; |
33 |
|
|
std::shared_ptr<Button> _quitButton; |
34 |
|
|
std::shared_ptr<Button> _funMode; |
35 |
|
|
|
36 |
|
|
std::shared_ptr<Input> _hzInput; |
37 |
|
|
Core *_core; |
38 |
|
|
|
39 |
|
|
}; |
40 |
|
|
|
41 |
|
|
#endif /* !MENU_HPP_ */ |
42 |
|
|
|