You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.2 KiB
41 lines
1.2 KiB
namespace CoreLibrary.Joueurs
|
|
{
|
|
/// <summary>
|
|
/// Classe représentant un joueur.
|
|
/// </summary>
|
|
public class Joueur
|
|
{
|
|
/// <summary>
|
|
/// Le nom du joueur.
|
|
/// </summary>
|
|
public string Nom { get; private init; }
|
|
|
|
public int NbCoutTotal { get; set; }
|
|
public int NbPartieGagnee { get; set; }
|
|
public int NbPartieEgalite { get; set; }
|
|
public int NbPartiePerdue { get; set; }
|
|
|
|
/// <summary>
|
|
/// Crée une nouvelle instance de joueur avec un nom
|
|
/// </summary>
|
|
/// <param name="nom">Le nom du joueur.</param>
|
|
public Joueur(string nom)
|
|
{
|
|
Nom = nom;
|
|
NbCoutTotal = 0;
|
|
NbPartieGagnee = 0;
|
|
NbPartieEgalite = 0;
|
|
NbPartiePerdue = 0;
|
|
}
|
|
|
|
public Joueur(string nom, int nbCoutTotal, int nbPartieGagnee, int nbPartieEgalite, int nbPartiePerdue)
|
|
{
|
|
Nom = nom;
|
|
NbCoutTotal = nbCoutTotal;
|
|
NbPartieGagnee = nbPartieGagnee;
|
|
NbPartieEgalite = nbPartieEgalite;
|
|
NbPartiePerdue = nbPartiePerdue;
|
|
}
|
|
}
|
|
}
|