Voir carte vision
This commit is contained in:
@@ -10,6 +10,8 @@ import java.util.concurrent.FutureTask;
|
||||
|
||||
import carte.CarteEquipement;
|
||||
import carte.CarteLieu;
|
||||
import carte.CartePiochable;
|
||||
import carte.CartePiochable.Type;
|
||||
import database.RessourceLoader;
|
||||
import effet.Effet;
|
||||
import ihm.controller.PlateauController;
|
||||
@@ -276,5 +278,20 @@ public class GestionnaireJeu {
|
||||
});
|
||||
}
|
||||
|
||||
public void piocher(Joueur j, CartePiochable cartePiochable) {
|
||||
Platform.runLater(() -> {
|
||||
try {
|
||||
if(cartePiochable.getType() == Type.VISION) {
|
||||
pc.afficherVision(j, cartePiochable);
|
||||
}else {
|
||||
pc.afficherLT(j, cartePiochable);
|
||||
}
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
waitPlateau();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -17,8 +17,6 @@ public class Pioche {
|
||||
melanger();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void melanger()
|
||||
{
|
||||
Collections.shuffle(cartesPiochables);
|
||||
@@ -28,8 +26,6 @@ public class Pioche {
|
||||
return cartesPiochables.pop();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public Stack<CartePiochable> getStack() {
|
||||
return cartesPiochables;
|
||||
}
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
package main;
|
||||
|
||||
public interface Type {
|
||||
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package main;
|
||||
|
||||
public class TypeLumiere implements Type {
|
||||
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package main;
|
||||
|
||||
public class TypeTenebre implements Type{
|
||||
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package main;
|
||||
|
||||
public class TypeVision implements Type {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user