34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
public void manuel() {
|
|
Random ran = new Random();
|
|
int nxt=0;
|
|
int compteur = 0;
|
|
|
|
Attente attendre = new Attente();
|
|
this.fenetre.requestFocus();
|
|
|
|
|
|
this.coordGate = outils.ParcoursCell(this.grille, this.cetteTaille);
|
|
this.notreThese = new These(coordGate[0], coordGate[1], this.cetteTaille, this.map);
|
|
|
|
while(this.notreThese.isArrived(coordGate[2], coordGate[3]) != These.ARRIVE){
|
|
|
|
Attente attendre = new Attente();
|
|
this.cetteFrame.addKeyListener(attendre);
|
|
|
|
/*nxt = ran.nextInt(4);
|
|
if(nxt == 0){
|
|
this.notreThese.goRight();
|
|
} else if(nxt == 1){
|
|
this.notreThese.goDown();
|
|
} else if(nxt == 2){
|
|
this.notreThese.goLeft();
|
|
} else {
|
|
this.notreThese.goTop();
|
|
}
|
|
|
|
this.grille[notreThese.getCoord()[0]][notreThese.getCoord()[1]].peindre(Cellules.VUE);
|
|
|
|
compteur++;
|
|
estInfini(compteur);*/
|
|
}
|
|
} |