Projet

Général

Profil

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
(5-5/7)