mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-08-11 17:45:28 +02:00
la til lobby screen
This commit is contained in:
@@ -12,6 +12,7 @@ public class ScreenManager {
|
|||||||
private StartMenuScreen startMenuScreen;
|
private StartMenuScreen startMenuScreen;
|
||||||
private UsernameScreen usernameScreen;
|
private UsernameScreen usernameScreen;
|
||||||
private IPAddressScreen ipAddressScreen;
|
private IPAddressScreen ipAddressScreen;
|
||||||
|
private LobbyScreen lobbyScreen;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets an instance of the main menu screen
|
* Gets an instance of the main menu screen
|
||||||
@@ -24,6 +25,12 @@ public class ScreenManager {
|
|||||||
}
|
}
|
||||||
return powerDownScreen;
|
return powerDownScreen;
|
||||||
}
|
}
|
||||||
|
public synchronized LobbyScreen getLobbyScreen(RoboRallyWrapper roboRallyWrapper) {
|
||||||
|
if (this.lobbyScreen == null) {
|
||||||
|
this.lobbyScreen = new LobbyScreen(roboRallyWrapper);
|
||||||
|
}
|
||||||
|
return lobbyScreen;
|
||||||
|
}
|
||||||
|
|
||||||
public synchronized IPAddressScreen getIPAddressScreen(RoboRallyWrapper roboRallyWrapper) {
|
public synchronized IPAddressScreen getIPAddressScreen(RoboRallyWrapper roboRallyWrapper) {
|
||||||
if (this.ipAddressScreen == null) {
|
if (this.ipAddressScreen == null) {
|
||||||
|
Reference in New Issue
Block a user