mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
la til de nye skjermene i screenmanager
This commit is contained in:
parent
d8c6a8e04c
commit
167a94d607
@ -8,6 +8,8 @@ public class ScreenManager {
|
||||
private BoardActiveScreen boardActiveScreen;
|
||||
private CardChoiceScreen cardChoiceScreen;
|
||||
private PowerDownScreen powerDownScreen;
|
||||
private LoadingScreen loadingScreen;
|
||||
private StartMenuScreen startMenuScreen;
|
||||
|
||||
/**
|
||||
* Gets an instance of the main menu screen
|
||||
@ -21,6 +23,20 @@ public class ScreenManager {
|
||||
return powerDownScreen;
|
||||
}
|
||||
|
||||
public synchronized StartMenuScreen getStartMenuScreen(RoboRallyWrapper roboRallyWrapper) {
|
||||
if (this.startMenuScreen == null) {
|
||||
this.startMenuScreen = new StartMenuScreen(roboRallyWrapper);
|
||||
}
|
||||
return startMenuScreen;
|
||||
}
|
||||
|
||||
public synchronized LoadingScreen getLoadingScreen(RoboRallyWrapper roboRallyWrapper) {
|
||||
if (this.loadingScreen == null) {
|
||||
this.loadingScreen = new LoadingScreen(roboRallyWrapper);
|
||||
}
|
||||
return loadingScreen;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets an instance of the main menu screen
|
||||
* @param roboRallyWrapper The robo rally launcher instance to use
|
||||
|
Loading…
x
Reference in New Issue
Block a user