added card choice screen

This commit is contained in:
Tobydrama 2020-04-16 14:58:01 +02:00
parent a8d755a812
commit 19e8c104db

View File

@ -14,6 +14,15 @@ public class ScreenManager {
private IPAddressScreen ipAddressScreen; private IPAddressScreen ipAddressScreen;
private LobbyScreen lobbyScreen; private LobbyScreen lobbyScreen;
private WinnerScreen winnerScreen; private WinnerScreen winnerScreen;
private CardChoiceScreen cardChoiceScreen;
public synchronized CardChoiceScreen getCardChoiceScreen(RoboRallyWrapper roboRallyWrapper) {
if (this.cardChoiceScreen == null) {
this.cardChoiceScreen = new CardChoiceScreen(roboRallyWrapper);
}
return cardChoiceScreen;
}
/** /**
* Gets an instance of the winner screen * Gets an instance of the winner screen