WinCondition Allie

This commit is contained in:
Paul Gross
2020-04-18 14:05:53 +02:00
parent 61e3e64f08
commit ff0e8121e1
10 changed files with 120 additions and 19 deletions

View File

@@ -110,4 +110,9 @@ public class Joueur {
return this.revele;
}
public Object getCartePersonnage() {
// TODO Auto-generated method stub
return null;
}
}

View File

@@ -16,6 +16,7 @@ public class Plateau {
public static final String PLATEAU_NB_MORTS_NEUTRAL = "nb_morts_neutral";
public static final String PLATEAU_NB_MORTS_HUNTER = "nb_morts_hunter";
public static final String PLATEAU_NB_MORTS_SHADOW = "nb_morts_shadow";
public static final String PLATEAU_PARTIE_FINIE = "partie_finie";
private Map<String, Integer> stats;
@@ -37,6 +38,8 @@ public class Plateau {
stats.put(PLATEAU_NB_MORTS_NEUTRAL, 0);
stats.put(PLATEAU_NB_MORTS_HUNTER, 0);
stats.put(PLATEAU_NB_MORTS_SHADOW, 0);
stats.put(PLATEAU_PARTIE_FINIE, 0);
}
public int rollDices() {
@@ -85,4 +88,16 @@ public class Plateau {
public List<Joueur> getJoueurs() {
return this.joueurs;
}
public int getStat(String key) {
if(this.stats.containsKey(key))
{
return this.getStat(key);
}else {
//TODO Exception
return -1;
}
}
}