méthodes bonus
This commit is contained in:
parent
6922a32736
commit
60855940bc
|
|
@ -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 ? */
|
||||
|
|
|
|||
Loading…
Reference in New Issue