Skip to content
Snippets Groups Projects
Commit f7a9af67 authored by rosier8u's avatar rosier8u
Browse files

ajout de EtatBlesse

parent 6f9836b5
No related branches found
No related tags found
No related merge requests found
package modele.DPState;
import modele.Personnage;
public class EtatBlesse implements Etat{
private int nbTour;
public EtatBlesse(){
this.nbTour = 2;
}
@Override
public void actionTour(Personnage personnage) {
personnage.subir(5);
nbTour--;
if (nbTour == 0){
personnage.setEtat(new EtatActif());
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment