You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
581 B
36 lines
581 B
#ifndef PARTIE_HPP
|
|
#define PARTIE_HPP
|
|
|
|
#include "joueur.hpp"
|
|
#include <string>
|
|
|
|
namespace jeu {
|
|
|
|
constexpr int valeurPerte{1};
|
|
constexpr int scoreVictoire{100};
|
|
|
|
class Partie {
|
|
|
|
private :
|
|
bool gameOver;
|
|
Joueur joueur1;
|
|
Joueur joueur2;
|
|
Joueur *joueurCourant;
|
|
De de;
|
|
|
|
public :
|
|
Partie(std::string nomJoueur1, std::string nomJoueur2);
|
|
|
|
Joueur getJoueurCourant() const;
|
|
|
|
void lancerDe();
|
|
int getValeurDe() const;
|
|
bool isGameOver() const;
|
|
void passerMainJoueurSuivant();
|
|
void rejouer();
|
|
};
|
|
|
|
} //namespace jeu
|
|
|
|
|
|
#endif // PARTIE_HPP
|