update classes
add attributes on joueur.java add methods and getters/setter on Case.java update Piece.java
This commit is contained in:
@ -3,6 +3,7 @@ package joueurs;
|
||||
public class Joueur {
|
||||
private String nom;
|
||||
private String couleur;
|
||||
private boolean aGagne;
|
||||
//private boolean tour = false;
|
||||
|
||||
public Joueur() {
|
||||
@ -31,5 +32,24 @@ public class Joueur {
|
||||
this.couleur = couleur;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Joueur [nom=" + nom + ", couleur=" + couleur + "]";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the aGagne
|
||||
*/
|
||||
public boolean isaGagne() {
|
||||
return aGagne;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param aGagne the aGagne to set
|
||||
*/
|
||||
public void setaGagne(boolean aGagne) {
|
||||
this.aGagne = aGagne;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user