Choix joueur attaqué

This commit is contained in:
Yessine-iut
2020-05-11 15:15:20 +02:00
parent 4d0d06de12
commit c9046f1316
2 changed files with 41 additions and 0 deletions

View File

@ -56,6 +56,8 @@ public class PlateauController implements Initializable {
private ChoisirBoolean cb;
private ChoisirEquipement ce;
private ChoisirJoueur cj;
private Map<Carte,BufferedImage> mapRessourcesCartes;
@ -382,6 +384,14 @@ public class PlateauController implements Initializable {
this.cb = null;
jihm.getZoneJoueur().getChildren().setAll();
return result;
}
public Joueur getChoixJoueur(Joueur joueur) {
JoueurIHM jihm = getJoueurIHM(joueur);
int result = this.cj.getJoueurSelected();
this.cj = null;
jihm.getZoneJoueur().getChildren().setAll();
return listJoueur.get(result);
}
public void deplacer(Joueur currentJoueur) {