Voir carte vision

This commit is contained in:
Paul Gross
2020-05-12 12:30:57 +02:00
parent 985a085e74
commit f1a46ada87
15 changed files with 171 additions and 43 deletions

View File

@@ -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();
}
}

View File

@@ -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;
}

View File

@@ -1,5 +0,0 @@
package main;
public interface Type {
}

View File

@@ -1,5 +0,0 @@
package main;
public class TypeLumiere implements Type {
}

View File

@@ -1,5 +0,0 @@
package main;
public class TypeTenebre implements Type{
}

View File

@@ -1,5 +0,0 @@
package main;
public class TypeVision implements Type {
}