Ajout d'un début de jeu
This commit is contained in:
@@ -113,7 +113,16 @@ public class GameModeSelectionPanel extends JPanel {
|
||||
return seedPanel;
|
||||
}
|
||||
|
||||
public String getSeed() {
|
||||
public String getStringSeed() {
|
||||
return seedField.getText();
|
||||
}
|
||||
|
||||
public long getLongSeed(){
|
||||
try{
|
||||
return Long.parseLong(seedField.getText());
|
||||
} catch (NumberFormatException e){
|
||||
System.err.println("Invalid seed, using current time as seed");
|
||||
return System.currentTimeMillis();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user