Configuration etc

This commit is contained in:
Paul Gross
2020-04-23 10:28:10 +02:00
parent df68d70f3d
commit 5cc7a5a053
6 changed files with 41 additions and 37 deletions

View File

@@ -8,6 +8,7 @@ import java.util.Map;
import carte.CarteLieu;
import effet.Effet;
import personnage.CartePersonnage;
public class Plateau {
@@ -30,23 +31,26 @@ public class Plateau {
public Plateau(List<Joueur> joueurs) {
joueurs.forEach(x -> x.setPlateau(this));
this.joueurs = joueurs;
this.lieux = new ArrayList<>();
this.stats = new HashMap<>();
// Initialisation plateau
this.stats.put(NB_HUNTERS, 0);
this.stats.put(NB_SHADOWS, 0);
this.stats.put(NB_NEUTRES, 0);
joueurs.forEach(x -> x.setPlateau(this));
this.stats.put(NB_MORTS, 0);
this.stats.put(NB_MORTS_NEUTRAL, 0);
this.stats.put(NB_MORTS_HUNTER, 0);
this.stats.put(NB_MORTS_SHADOW, 0);
this.stats.put(PARTIE_FINIE, 0);
initCartePersonnage();
// Initialisation plateau
this.stats.put(NB_HUNTERS, 0);
this.stats.put(NB_SHADOWS, 0);
this.stats.put(NB_NEUTRES, 0);