Fangh
Diff Revisions
42
vs
43
for /trunk/enigme.cpp
|
@@ -2,11 +2,13 @@ |
2 |
2 |
|
|
3 |
3 |
|
Enigme::Enigme(){ |
4 |
4 |
|
nbReponse = 0; |
|
5 |
+ |
enigmeJoue = false; |
5 |
6 |
|
} |
6 |
7 |
|
|
7 |
8 |
|
Enigme::Enigme(std::string _enonce): enonce(_enonce) |
8 |
9 |
|
{ |
9 |
10 |
|
nbReponse = 0; |
|
11 |
+ |
enigmeJoue = false; |
10 |
12 |
|
} |
11 |
13 |
|
|
12 |
14 |
|
void Enigme::ajouterEnonce(std::string _enonce){ |
|
@@ -22,6 +24,10 @@ |
22 |
24 |
|
competence = _competence; |
23 |
25 |
|
} |
24 |
26 |
|
|
|
27 |
+ |
void Enigme::setEnigmeJoue(bool joue){ |
|
28 |
+ |
enigmeJoue = joue; |
|
29 |
+ |
} |
|
30 |
+ |
|
25 |
31 |
|
std::string Enigme::getEnonce() const{ |
26 |
32 |
|
return enonce; |
27 |
33 |
|
} |
|
@@ -34,6 +40,10 @@ |
34 |
40 |
|
return (const std::list<std::string>*)(&listeReponse); |
35 |
41 |
|
} |
36 |
42 |
|
|
|
43 |
+ |
bool Enigme::getEnigmeJoue() const{ |
|
44 |
+ |
return enigmeJoue; |
|
45 |
+ |
} |
|
46 |
+ |
|
37 |
47 |
|
std::string Enigme::afficherInfo() const{ |
38 |
48 |
|
std::string chaineRetour = ""; |
39 |
49 |
|
|