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.
32 lines
656 B
32 lines
656 B
namespace BibliothequeClasses
|
|
{
|
|
public class Combinaison
|
|
{
|
|
|
|
private int taillePhysique = 4;
|
|
private int tailleLogique = 0;
|
|
private Jeton[] lesJetons = new Jeton[0];
|
|
|
|
|
|
public Jeton GetJeton(int indice)
|
|
{
|
|
return lesJetons[indice];
|
|
}
|
|
|
|
public void AjouterJeton(Jeton jeton)
|
|
{
|
|
lesJetons[tailleLogique++] = jeton;
|
|
}
|
|
|
|
public void SupprimerDernierJeton()
|
|
{
|
|
--tailleLogique;
|
|
}
|
|
|
|
public bool EstComplet()
|
|
{
|
|
return tailleLogique == taillePhysique;
|
|
}
|
|
}
|
|
}
|