Skip to content
Snippets Groups Projects
Commit efcec089 authored by Azurlors's avatar Azurlors
Browse files

Mise à jour test

parent c0e030bc
No related branches found
No related tags found
No related merge requests found
...@@ -5,5 +5,5 @@ package engine; ...@@ -5,5 +5,5 @@ package engine;
* *
*/ */
public enum Cmd { public enum Cmd {
LEFT,RIGHT,UP,IDLE; LEFT,RIGHT,JUMP,IDLE;
} }
package entity;
public class Character {
}
...@@ -53,7 +53,7 @@ public class PacmanController implements GameController { ...@@ -53,7 +53,7 @@ public class PacmanController implements GameController {
this.commandeEnCours = Cmd.RIGHT; this.commandeEnCours = Cmd.RIGHT;
break; break;
case ' ': case ' ':
this.commandeEnCours = Cmd.UP; this.commandeEnCours = Cmd.JUMP;
break; break;
} }
......
...@@ -42,7 +42,9 @@ public class PacmanGame implements Game { ...@@ -42,7 +42,9 @@ public class PacmanGame implements Game {
@Override @Override
public void evolve(Cmd commande) { public void evolve(Cmd commande) {
System.out.println("Execute "+commande); System.out.println("Execute "+commande);
if (commande == Cmd.LEFT) {
}
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment