-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCombinaison.h
More file actions
50 lines (39 loc) · 1.23 KB
/
Combinaison.h
File metadata and controls
50 lines (39 loc) · 1.23 KB
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
#include "Carte.h"
#ifndef COMBINAISON_H
#define COMBINAISON_H
class Combinaison{
Carte* c1;
Carte* c2;
Carte* c3;
Carte* c4;
int nb_cartes;
int Puissance;
int MaxPuissance;
vector<Carte*> cartes_combi;
int somme;
int MaxSomme;
public:
//const Carte& getCarte1() const { return *c1; }
//const Carte& getCarte2() const { return *c2; }
//const Carte& getCarte3() const { return *c3; }
Combinaison(Carte* c1_, Carte* c2_, Carte* c3_, int nb_c);
Combinaison(Carte* c1_, Carte* c2_, Carte* c3_, Carte* c4_, int nb_c);
const int getPuissance() const {return Puissance;}
vector<Carte*> getCartesCombi() {return cartes_combi;};
void setCartes(Carte* c1_, Carte* c2_, Carte* c3_);
bool estUneCouleur();
bool estUneSuite();
bool estUnBrelan();
bool estUneSuiteCouleur();
void sommeSuite();
int getSommeSuite() const {return somme;};
Carte& getC1() const {return *c1;};
Carte& getC2() const {return *c2;};
Carte& getC3() const {return *c3;};
Carte& getC4() const {return *c4;};
void PuissanceCombinaison();
int getMaxPuissance();
int getMaxSomme() const {return MaxSomme;};
void DonnerCombinaison();
};
#endif // COMBINAISON_H