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