handle exit
This commit is contained in:
parent
dc4350b533
commit
cce9091e36
1 changed files with 6 additions and 2 deletions
|
@ -20,9 +20,12 @@ public class RovinePerduteMain {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
int valore = ottieniValore();
|
int valore = ottieniValore();
|
||||||
|
|
||||||
|
|
||||||
|
if (valore != -1) {
|
||||||
RovinePerduteHandler rph = new RovinePerduteHandler(String.format("test_file/PgAr_Map_%d.xml", valore));
|
RovinePerduteHandler rph = new RovinePerduteHandler(String.format("test_file/PgAr_Map_%d.xml", valore));
|
||||||
rph.generaFileXML();
|
rph.generaFileXML();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ottiene il valore selezionato dal menu.
|
* Ottiene il valore selezionato dal menu.
|
||||||
|
@ -39,6 +42,7 @@ public class RovinePerduteMain {
|
||||||
case 4 -> valore = 200;
|
case 4 -> valore = 200;
|
||||||
case 5 -> valore = 2000;
|
case 5 -> valore = 2000;
|
||||||
case 6 -> valore = 10000;
|
case 6 -> valore = 10000;
|
||||||
|
case 0 -> valore = -1;
|
||||||
}
|
}
|
||||||
return valore;
|
return valore;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue