Afficheur-AREA  1.1
BTS SNIR LaSalle Avignon 2021
Joueur.cpp
Aller à la documentation de ce fichier.
1 #include "Joueur.h"
2 #include <QDebug>
3 
20 Joueur::Joueur(QString nom, QString prenom) : nom(nom), prenom(prenom), echangesRemportes(0)
21 {
22  qDebug() << Q_FUNC_INFO << nom << prenom;
23 }
24 
31 {
32  qDebug() << Q_FUNC_INFO;
33 }
34 
41 QString Joueur::getNom() const
42 {
43  return this->nom;
44 }
45 
52 void Joueur::setNom(QString &n)
53 {
54  nom = n;
55 }
56 
63 QString Joueur::getPrenom() const
64 {
65  return this->prenom;
66 }
67 
74 void Joueur::setPrenom(QString &p)
75 {
76  prenom = p;
77 }
78 
86 {
87  return echangesRemportes;
88 }
Déclaration de la classe Joueur.
~Joueur()
Déstructeur de la classe Joueur.
Definition: Joueur.cpp:30
int echangesRemportes
Le nombre d&#39;échagnes remportés par le joueur.
Definition: Joueur.h:25
QString nom
Le nom d&#39;un joueur.
Definition: Joueur.h:23
void setNom(QString &n)
Méthode qui modifie le nom du joueur.
Definition: Joueur.cpp:52
QString prenom
Le prénom d&#39;un joueur.
Definition: Joueur.h:24
QString getNom() const
Méthode qui retourne le nom du joueur.
Definition: Joueur.cpp:41
QString getPrenom() const
Méthode qui retourne le prénom du joueur.
Definition: Joueur.cpp:63
int getEchangesRemportes() const
Méthode qui retourne le nombre déchanges remportés par le joueur.
Definition: Joueur.cpp:85
Joueur(QString nom="nomJoueur", QString prenom="PrenomJoueur")
Constructeur de la classe Joueur.
Definition: Joueur.cpp:20
void setPrenom(QString &p)
Méthode qui modifie le prénom du joueur.
Definition: Joueur.cpp:74