Simple menu. Does nothing.

This commit is contained in:
HeshamTB 2020-11-27 18:39:01 +03:00
parent 6d3d3b5085
commit b85a4040f2
Signed by: Hesham
GPG Key ID: 74876157D199B09E

View File

@ -161,12 +161,10 @@ public class MakkahCity {
if (inputListener.hasNew()){
input = inputListener.getInput();
if (input.equals("p")){
System.out.println("PAUSED");
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println("PAUSED: "+ currenttimeManager.getCurrentTime());
inputListener.pause();
startMenu();
inputListener.unpause();
}
else if (input.equals("s")) {
inputListener.stop();
@ -176,6 +174,16 @@ public class MakkahCity {
}
}
private static void startMenu() {
Scanner in = new Scanner(System.in);
System.out.println("---------------------------\n" +
"[1] View Vehicles\n" +
"[2] View Streets\n" +
"[3] View Campaigns\n" +
"[4] View Routes");
String chose = in.next();
}
private static void clearDoneCivilVehicles() {
//Clear civil cars from list
for (int i = 0; i < listOfVehicles.size();){