mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
Legger til manglende kommentarer for ScreenManager
This commit is contained in:
parent
1d2887af28
commit
76c3a80da3
@ -15,9 +15,9 @@ public class ScreenManager {
|
|||||||
private LobbyScreen lobbyScreen;
|
private LobbyScreen lobbyScreen;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets an instance of the main menu screen
|
* Gets an instance of the power down screen
|
||||||
* @param roboRallyWrapper The robo rally launcher instance to use
|
* @param roboRallyWrapper The Robo Rally launcher instance to use
|
||||||
* @return A main menu screen instance
|
* @return A power down screen instance
|
||||||
*/
|
*/
|
||||||
public synchronized PowerDownScreen getPowerDownScreen(RoboRallyWrapper roboRallyWrapper) {
|
public synchronized PowerDownScreen getPowerDownScreen(RoboRallyWrapper roboRallyWrapper) {
|
||||||
if (this.powerDownScreen == null) {
|
if (this.powerDownScreen == null) {
|
||||||
@ -25,6 +25,12 @@ public class ScreenManager {
|
|||||||
}
|
}
|
||||||
return powerDownScreen;
|
return powerDownScreen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets an instance of the lobby screen
|
||||||
|
* @param roboRallyWrapper The Robo Rally launcher instance to use
|
||||||
|
* @return A lobby screen instance
|
||||||
|
*/
|
||||||
public synchronized LobbyScreen getLobbyScreen(RoboRallyWrapper roboRallyWrapper) {
|
public synchronized LobbyScreen getLobbyScreen(RoboRallyWrapper roboRallyWrapper) {
|
||||||
if (this.lobbyScreen == null) {
|
if (this.lobbyScreen == null) {
|
||||||
this.lobbyScreen = new LobbyScreen(roboRallyWrapper);
|
this.lobbyScreen = new LobbyScreen(roboRallyWrapper);
|
||||||
@ -32,6 +38,11 @@ public class ScreenManager {
|
|||||||
return lobbyScreen;
|
return lobbyScreen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets an instance of the ip address screen
|
||||||
|
* @param roboRallyWrapper The Robo Rally launcher instance to use
|
||||||
|
* @return An ip address screen instance
|
||||||
|
*/
|
||||||
public synchronized IPAddressScreen getIPAddressScreen(RoboRallyWrapper roboRallyWrapper) {
|
public synchronized IPAddressScreen getIPAddressScreen(RoboRallyWrapper roboRallyWrapper) {
|
||||||
if (this.ipAddressScreen == null) {
|
if (this.ipAddressScreen == null) {
|
||||||
this.ipAddressScreen = new IPAddressScreen(roboRallyWrapper);
|
this.ipAddressScreen = new IPAddressScreen(roboRallyWrapper);
|
||||||
@ -39,6 +50,11 @@ public class ScreenManager {
|
|||||||
return ipAddressScreen;
|
return ipAddressScreen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets an instance of the username screen
|
||||||
|
* @param roboRallyWrapper The Robo Rally launcher instance to use
|
||||||
|
* @return A username screen instance
|
||||||
|
*/
|
||||||
public synchronized UsernameScreen getUsernameScreen(RoboRallyWrapper roboRallyWrapper) {
|
public synchronized UsernameScreen getUsernameScreen(RoboRallyWrapper roboRallyWrapper) {
|
||||||
if (this.usernameScreen == null) {
|
if (this.usernameScreen == null) {
|
||||||
this.usernameScreen = new UsernameScreen(roboRallyWrapper);
|
this.usernameScreen = new UsernameScreen(roboRallyWrapper);
|
||||||
@ -46,10 +62,20 @@ public class ScreenManager {
|
|||||||
return usernameScreen;
|
return usernameScreen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets an instance of the start menu screen
|
||||||
|
* @param roboRallyWrapper The Robo Rally launcher instance to use
|
||||||
|
* @return A start menu screen instance
|
||||||
|
*/
|
||||||
synchronized StartMenuScreen getStartMenuScreen(RoboRallyWrapper roboRallyWrapper) {
|
synchronized StartMenuScreen getStartMenuScreen(RoboRallyWrapper roboRallyWrapper) {
|
||||||
return new StartMenuScreen(roboRallyWrapper);
|
return new StartMenuScreen(roboRallyWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets an instance of the loading screen
|
||||||
|
* @param roboRallyWrapper The Robo Rally launcher instance to use
|
||||||
|
* @return A loading screen instance
|
||||||
|
*/
|
||||||
public synchronized LoadingScreen getLoadingScreen(RoboRallyWrapper roboRallyWrapper) {
|
public synchronized LoadingScreen getLoadingScreen(RoboRallyWrapper roboRallyWrapper) {
|
||||||
if (this.loadingScreen == null) {
|
if (this.loadingScreen == null) {
|
||||||
this.loadingScreen = new LoadingScreen(roboRallyWrapper);
|
this.loadingScreen = new LoadingScreen(roboRallyWrapper);
|
||||||
@ -59,7 +85,7 @@ public class ScreenManager {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets an instance of the board active screen
|
* Gets an instance of the board active screen
|
||||||
* @param roboRallyWrapper The robo rally launcher instance to use
|
* @param roboRallyWrapper The Robo Rally launcher instance to use
|
||||||
* @return A board active screen instance
|
* @return A board active screen instance
|
||||||
*/
|
*/
|
||||||
public synchronized BoardActiveScreen getBoardActiveScreen(RoboRallyWrapper roboRallyWrapper) {
|
public synchronized BoardActiveScreen getBoardActiveScreen(RoboRallyWrapper roboRallyWrapper) {
|
||||||
@ -70,9 +96,9 @@ public class ScreenManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets an instance of the board active screen
|
* Gets an instance of the card choice screen
|
||||||
* @param roboRallyWrapper The robo rally launcher instance to use
|
* @param roboRallyWrapper The Robo Rally launcher instance to use
|
||||||
* @return A board active screen instance
|
* @return A card choice screen instance
|
||||||
*/
|
*/
|
||||||
public synchronized CardChoiceScreen getCardChoiceScreen(RoboRallyWrapper roboRallyWrapper) {
|
public synchronized CardChoiceScreen getCardChoiceScreen(RoboRallyWrapper roboRallyWrapper) {
|
||||||
if (this.cardChoiceScreen == null) {
|
if (this.cardChoiceScreen == null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user