|
|
@ -2,14 +2,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
namespace CoreLibrary.Evenements
|
|
|
|
namespace CoreLibrary.Evenements
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Classe contenant les arguments passés en paramètres lors de l'événement PartieDemanderJoueurJouer.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
public class PartieDemanderJoueurJouerEventArgs : EventArgs
|
|
|
|
public class PartieDemanderJoueurJouerEventArgs : EventArgs
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Obtient le numéro du tour.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
public int Tour { get; private init; }
|
|
|
|
public int Tour { get; private init; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Obtient le nom du joueur.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
public string Nom { get; private init; }
|
|
|
|
public string Nom { get; private init; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Obtient le plateau actuel.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
public Plateau Plateau { get; private init; }
|
|
|
|
public Plateau Plateau { get; private init; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Obtient le code en cours.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
public Code Code { get; private init; }
|
|
|
|
public Code Code { get; private init; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Indique si le joueur est un joueur humain.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
public bool EstJoueur { get; private init; }
|
|
|
|
public bool EstJoueur { get; private init; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Initialise une nouvelle instance de la classe <see cref="PartieDemanderJoueurJouerEventArgs"/>.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <param name="tour">Le numéro du tour.</param>
|
|
|
|
|
|
|
|
/// <param name="nom">Le nom du joueur.</param>
|
|
|
|
|
|
|
|
/// <param name="plateau">Le plateau actuel.</param>
|
|
|
|
|
|
|
|
/// <param name="code">Le code en cours.</param>
|
|
|
|
|
|
|
|
/// <param name="estJoueur">Indique si le joueur est un joueur humain.</param>
|
|
|
|
public PartieDemanderJoueurJouerEventArgs(int tour, string nom, Plateau plateau, Code code, bool estJoueur)
|
|
|
|
public PartieDemanderJoueurJouerEventArgs(int tour, string nom, Plateau plateau, Code code, bool estJoueur)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Tour = tour;
|
|
|
|
Tour = tour;
|
|
|
|