Unit tests WinConditionHunter / Shadow

This commit is contained in:
Paul Gross
2020-04-20 12:38:06 +02:00
parent b6a1db9e3b
commit fb4e3c6c7c
10 changed files with 206 additions and 28 deletions

View File

@ -58,12 +58,17 @@ public class Joueur {
return this.equipe;
}
public int setStat(String key, int valeur) {
return stats.put(key, valeur);
public void setStat(String key, int valeur) {
this.stats.put(key, valeur);
}
public int getStat(String key) {
return stats.get(key);
if(stats.containsKey(key)) {
return stats.get(key);
}else {
return -1;
}
}
@ -134,4 +139,8 @@ public class Joueur {
}
public void setPlateau(Plateau plateau2) {
this.plateau = plateau2;
}
}