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

ajout de EtatEndormi

parent 116607af
No related branches found
No related tags found
No related merge requests found
package modele.DPState;
import modele.Personnage;
public class EtatEndormi implements Etat{
private int nbTour;
public EtatEndormi(){
this.nbTour = 3;
}
@Override
public void actionTour(Personnage personnage) {
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