-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMenu.java
28 lines (23 loc) · 801 Bytes
/
Menu.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
public class Menu{
public static void doMenu(String selection){
if (selection.equalsIgnoreCase("stats")){
Main.clearScreen();
Hero.display();
Game.pressEnter();
Game.prompt();
} else if (selection.equalsIgnoreCase("inventory")){
Main.clearScreen();
Hero.showInventory();
Game.pressEnter();
Game.prompt();
} else if (selection.equalsIgnoreCase("quests")){
Main.clearScreen();
Hero.showQuests();
Game.pressEnter();
Game.prompt();
} else {
System.out.format("%s\nInvalid selection\ntry again %s-->", ConsoleColors.system, ConsoleColors.DEFAULT);
Game.pressEnter();
}
}
}