⚲
Projet
Général
Profil
Connexion
S'enregistrer
Accueil
Projets
Aide
Recherche
:
2021_tournoi_pingpong
Tous les projets
2021_tournoi_pingpong
Aperçu
Activité
Demandes
Gantt
Annonces
Documents
Wiki
Fichiers
Dépôt
Télécharger (935 octets)
Publication de fichiers
» match.hpp
Anonyme, 11/01/2022 10:42
#ifndef _MATCH_H_
#define _MATCH_H_
#include
<iostream>
#include
<string>
#include
"joueur.hpp"
using
namespace
std
;
class
Match
{
private
:
//attributs
int
numMatch
;
Joueur
joueurA
;
Joueur
joueurB
;
int
scoreA
;
int
scoreB
;
bool
joue
;
public:
//constructeur
Match
(
int
numMatch
,
Joueur
jA
,
Joueur
jB
,
int
scoreA
=
0
,
int
scoreB
=
0
,
bool
joue
=
false
);
//operations
Joueur
getJoueurA
()
const
;
Joueur
getJoueurB
()
const
;
void
setJoueurA
(
Joueur
j
);
void
setJoueurB
(
Joueur
j
);
int
getScoreA
();
int
getScoreB
();
int
getNumMatch
();
void
setNumMatch
(
int
s
);
void
setScoreA
(
int
s
);
void
setScoreB
(
int
s
);
void
setEcart
(
int
a
,
int
b
);
bool
getJoue
();
void
setJoue
(
int
s
);
string
afficher
()
const
;
};
#endif
« Précédent
1
…
3
4
5
6
7
Suivant »
(5-5/7)
Chargement...