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
|
#ifndef MYSTERE_H
#define MYSTERE_H
#include <iostream>
#include <vector>
#include <fstream>
using namespace std;
class Mystere
{
public:
// Fonction de nettoyage
void clear(void);
// Constructeur
Mystere(void);
// Autres méthodes
const void afficherMotTrouve(void);
const void afficherLettresEntrees(void);
const void afficherMotMystere(void);
void testerLettre(char lettre);
void assignerMot(vector< char > motSecret);
const bool plusDeCoups(void);
const bool victoire(void);
// Accesseur
const long getCoupsRestants(void);
// Méthodes statiques
static vector< char > motAleatoire(void);
static vector< char > entreeJoueur(void);
static void afficherTitre();
static void activerMenu();
private:
vector< char > m_motSecret;
vector< char > m_motTrouve;
vector< char > m_lettresEntrees;
long m_nombreCoupsRestants;
};
#endif // MYSTERE_H |
Partager