Simple menu. Does nothing.
This commit is contained in:
parent
6d3d3b5085
commit
b85a4040f2
@ -161,12 +161,10 @@ public class MakkahCity {
|
|||||||
if (inputListener.hasNew()){
|
if (inputListener.hasNew()){
|
||||||
input = inputListener.getInput();
|
input = inputListener.getInput();
|
||||||
if (input.equals("p")){
|
if (input.equals("p")){
|
||||||
System.out.println("PAUSED");
|
System.out.println("PAUSED: "+ currenttimeManager.getCurrentTime());
|
||||||
try {
|
inputListener.pause();
|
||||||
Thread.sleep(10000);
|
startMenu();
|
||||||
} catch (InterruptedException e) {
|
inputListener.unpause();
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (input.equals("s")) {
|
else if (input.equals("s")) {
|
||||||
inputListener.stop();
|
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() {
|
private static void clearDoneCivilVehicles() {
|
||||||
//Clear civil cars from list
|
//Clear civil cars from list
|
||||||
for (int i = 0; i < listOfVehicles.size();){
|
for (int i = 0; i < listOfVehicles.size();){
|
||||||
|
Loading…
Reference in New Issue
Block a user