Plateau test
This commit is contained in:
@ -109,7 +109,7 @@ public class Joueur {
|
||||
if(blessure > 0)
|
||||
{
|
||||
j2.addStat(PLAYER_HP, -blessure);
|
||||
this.cartePersonnage.attaquer(j2);
|
||||
//this.cartePersonnage.attaquer(j2);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -72,12 +72,15 @@ public class Plateau {
|
||||
|
||||
public void deplacer(Joueur currentJoueur) {
|
||||
|
||||
int roll = sumRolls();
|
||||
|
||||
boolean attributed = false;
|
||||
|
||||
while(!attributed) {
|
||||
int roll = sumRolls();
|
||||
for(CarteLieu cl : lieux) {
|
||||
|
||||
if(cl.coordinatesContains(roll) && currentJoueur.getCarteLieu() != cl){
|
||||
|
||||
currentJoueur.deplacer(cl);
|
||||
attributed = true;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user