-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjeu.h
66 lines (51 loc) · 1.61 KB
/
jeu.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef JEU_H_INCLUDED
#define JEU_H_INCLUDED
#include <SFML/Graphics.hpp>
#include <SFML/audio.hpp>
#include <list>
#include "player.h"
#include "enemies/enemy.h"
#include "collision.h"
#include "population.h"
#include "pannel.h"
#include "timer.h"
#include "menu.h"
#include "script.h"
#include "background.h"
#include "image_manager.h"
#include "tirs/projectile_manager.h"
#include "guard.h"
#include "tirs/missile_manager.h"
#include "tirs/weapon_manager.h"
#include "drop_manager.h"
#include "tirs/score_manager.h"
#include "const.h"
#include "levels/level_manager.h"
#include "Cheat_manager.h"
#include "son/sound_manager.h"
class Jeu
{
public:
Jeu(int const SCREEN_WIDTH, int const SCREEN_HEIGHT, Menu &menu);
//Destructeur
~Jeu();
//Démarre la partie
int start(short niveau);
//Met en pause la partie
void pause(sf::Event event, Pannel &pannel,std::tr1::shared_ptr<Player> player, std::tr1::shared_ptr<Player> player2);
void saveDatas(std::tr1::shared_ptr<Player> player1, std::tr1::shared_ptr<Player> player2);
int getTotalScore();
protected:
sf::Sound musicSound;
sf::SoundBuffer clicBuffer;
sf:: Sound clicSound;
//Taille de la fenêtre
int const m_SCREEN_WIDTH, m_SCREEN_HEIGHT;
//Objet menu pour lancer la partie et mettre en pause
Menu &m_menu;
//Pour quitter la partie en cours
bool m_quit;
int scorePlayer1, scorePlayer2;
};
bool hasQuitCondition(std::tr1::shared_ptr<Player> player, std::tr1::shared_ptr<Player> player2, bool quit);
#endif // JEU_H_INCLUDED