Capacite personnage thread
This commit is contained in:
@@ -226,9 +226,10 @@ public class GestionnaireJeu {
|
||||
return null;
|
||||
}
|
||||
public void waitPlateau() {
|
||||
synchronized(plateau) {
|
||||
Thread currentThread = Thread.currentThread();
|
||||
synchronized(currentThread) {
|
||||
try {
|
||||
plateau.wait();
|
||||
currentThread.wait();
|
||||
} catch (InterruptedException e) {
|
||||
|
||||
}
|
||||
|
||||
@@ -272,6 +272,12 @@ public class Joueur {
|
||||
|
||||
}
|
||||
|
||||
public void utiliserCapacite() {
|
||||
if(revele) {
|
||||
this.cartePersonnage.utiliser();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user