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.
17 lines
516 B
17 lines
516 B
namespace BibliothequeClasses
|
|
{
|
|
public abstract class Combinaison
|
|
{
|
|
|
|
protected static readonly int taillePhysique = 4;
|
|
public int TailleLogique { get; private set; } = 0;
|
|
private readonly Jeton[] lesJetons = new Jeton[taillePhysique];
|
|
|
|
protected void AjouterJeton(Jeton jeton) => lesJetons[TailleLogique++] = jeton;
|
|
|
|
public Jeton GetJeton(int indice) => lesJetons[indice];
|
|
|
|
protected void SupprimerDernierJeton() => --TailleLogique;
|
|
}
|
|
}
|