Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- se situe dans VueConsole
- private void afficheCreationAeroport() {
- int y;
- int x;
- System.out.println("----------------------------------------------");
- System.out.println("Nom aéroport :");
- String nom = new Scanner(System.in).nextLine();
- switch (nom) {
- case "":
- System.err.println("Nom aéroport --> null");
- this.afficheMenuChoixGeneral();
- default:
- }
- do {
- System.out.println("Position X :");
- x = new Scanner(System.in).nextInt();
- } while (x < 0 || x > 5000);
- do {
- System.out.println("Position Y :");
- y = new Scanner(System.in).nextInt();
- } while (y < 0 || y > 5000);
- Controller.getInstance().lancementScenario(new Declencheur(Declencheur.CREATION_AEROPORT, (new Aeroport(x, y, nom))));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement