fjernet cardchoisescreen

This commit is contained in:
Tobydrama 2020-04-14 14:49:49 +02:00
parent 847586d06c
commit bd9dbf5555

View File

@ -15,7 +15,6 @@ import inf112.fiasko.roborally.game_wrapper.screens.StartMenuScreen;
*/ */
public class ScreenManager { public class ScreenManager {
private BoardActiveScreen boardActiveScreen; private BoardActiveScreen boardActiveScreen;
private CardChoiceScreen cardChoiceScreen;
private PowerDownScreen powerDownScreen; private PowerDownScreen powerDownScreen;
private LoadingScreen loadingScreen; private LoadingScreen loadingScreen;
private UsernameScreen usernameScreen; private UsernameScreen usernameScreen;
@ -103,15 +102,5 @@ public class ScreenManager {
return boardActiveScreen; return boardActiveScreen;
} }
/**
* Gets an instance of the card choice screen
* @param roboRallyWrapper The Robo Rally launcher instance to use
* @return A card choice screen instance
*/
public synchronized CardChoiceScreen getCardChoiceScreen(RoboRallyWrapper roboRallyWrapper) {
if (this.cardChoiceScreen == null) {
this.cardChoiceScreen = new CardChoiceScreen(roboRallyWrapper);
}
return cardChoiceScreen;
}
} }