-
Notifications
You must be signed in to change notification settings - Fork 1
/
Play.h
50 lines (31 loc) · 650 Bytes
/
Play.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#pragma once
#include <Box2D/Box2D.h>
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include "Gameplay.h"
class Play
{
private:
b2World& _world;
Gameplay* _gameplay = nullptr;
sf::Music _musicMenu;
bool _play = false;
bool _pause = false;
public:
Play(b2World& world);
void update();
void update(sf::Event event);
void render(sf::RenderWindow& window);
bool getPlay() const;
bool getPause() const;
void gameWin();
void newGame();
void tryAgain();
void gameOver();
bool getTryAgain();
bool getCredits();
void setPlayerName(std::string playerName);
void createGameplay();
void open();
void close();
};