méthodes bonus

This commit is contained in:
leama 2023-03-21 11:58:14 +01:00
parent 6922a32736
commit 60855940bc
1 changed files with 10 additions and 2 deletions

View File

@ -27,6 +27,16 @@ public class Bonus {
tab[1] = bPositionY;
return tab;
}
public int augmVie(Joueur joueur) {
joueur.setScoreVie(joueur.getScoreVie() + bonusVie);
return joueur.getScoreVie();
}
public int augmAttaque(Joueur joueur) {
joueur.setScoreAttaque(joueur.getScoreAttaque() + bonusAttaque);
return joueur.getScoreAttaque();
}
public int getbPositionX() {
return bPositionX;
@ -46,5 +56,3 @@ public class Bonus {
}
/* (tableau[posX][posY] = null) */
/* quand il y a rien, il ya un 0, un null ? */