Added stage attr along with getters and setters to launcher.Settings.

This commit is contained in:
François Autin 2021-05-28 00:55:12 +02:00
parent b52bbb506a
commit 4e99b1e115
No known key found for this signature in database
GPG Key ID: 24025429AC559B7C

View File

@ -42,6 +42,7 @@ public class Settings {
private FileInputStream f_is; private FileInputStream f_is;
private int width, height, r_x, r_y, rounds; private int width, height, r_x, r_y, rounds;
private boolean fullscreen; private boolean fullscreen;
private String stage;
private Player p1, p2; private Player p1, p2;
public Settings() throws Exception { public Settings() throws Exception {
@ -108,6 +109,10 @@ public class Settings {
return fullscreen; return fullscreen;
} }
protected String getStage() {
return stage;
}
protected Player getP1() { protected Player getP1() {
return p1; return p1;
} }
@ -144,6 +149,10 @@ public class Settings {
this.fullscreen = fullscreen; this.fullscreen = fullscreen;
} }
protected void setStage(String stage) {
this.stage = stage;
}
protected void setP1(Player p1) { protected void setP1(Player p1) {
this.p1 = p1; this.p1 = p1;
} }