Skip to content
Snippets Groups Projects
Commit 05877750 authored by Camille Okubo's avatar Camille Okubo
Browse files
parents 00418741 4bbc3bda
No related branches found
No related tags found
No related merge requests found
package bitFight;
public interface Display {
public void display();
public boolean validate();
}
......@@ -3,7 +3,7 @@ package bitFight;
import java.util.Scanner;
public class GameDisplay implements Display{
public class GameDisplay {
String texte;
......@@ -11,12 +11,10 @@ public class GameDisplay implements Display{
this.texte=texte;
}
@Override
public void display() {
System.out.println(this.texte);
}
@Override
public boolean validate() {
Scanner sc= new Scanner(System.in);
String c= sc.nextLine();
......
......@@ -3,7 +3,7 @@ package bitFight;
import java.util.Scanner;
public class LevelDisplay implements Display {
public class LevelDisplay {
private int levelNb = 1;
private String levelText = "New level : prepare to fight!";
......
......@@ -3,7 +3,7 @@ package bitFight;
import java.util.Scanner;
public class Menu implements Display{
public class Menu {
String titre;
String texte;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment