Files
java-schule/projekt/Menu.~ava
Mykola Fesenko 899a05907b backup
2025-07-29 08:08:23 +02:00

39 lines
736 B
Plaintext

import java.util.Scanner;
public class Menu {
public Game game;
public Scanner input;
public int state = 0;
public Menu(Game _game) {
game = _game;
//input = _game.input;
}
public static void getMenu() {
switch (state) {
case 1:
printStateCity();
break;
case 0:
break;
default:
}
}
public static void printStateCity() {
System.out.println("You are in city: ");
System.out.println("What are you going to do?");
System.out.println("S - Shop, A - Adventure, G - Guild");
String choice = "";
if(input.hasNext()) {
choice = input.next();
}
game.helper.printBarLine();
}
}