mise au point des tests IA

This commit is contained in:
Kruss
2020-05-06 10:03:37 +02:00
parent 17f5d37c5e
commit 624e12135f
4 changed files with 69 additions and 29 deletions

View File

@ -70,6 +70,20 @@ public class Joueur {
updateVie();
}
//pour tests IA
public void setHP(int val) {
this.stats.put("HP", val);
}
//pour tests IA
public void setNbEquip(int val) {
this.stats.put("nb_equipements", val);
}
//pour tests IA
public void setDamage(int val) {
this.stats.put("DAMAGE", val);
}
private void updateVie() {
int damage = damageTaken();
this.plateau.updateVieJoueur(this, damage);