This commit is contained in:
Mykola Fesenko
2025-07-29 08:08:23 +02:00
commit 899a05907b
355 changed files with 11002 additions and 0 deletions

39
projekt/Menu.~ava Normal file
View File

@@ -0,0 +1,39 @@
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();
}
}