Unit tests WinConditionHunter / Shadow
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user