mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-08-01 04:35:27 +02:00
added ask if continue powerdown
This commit is contained in:
@@ -25,10 +25,7 @@ public class ScreenManager {
|
||||
|
||||
|
||||
public synchronized CardChoiceScreen getCardChoiceScreen(RoboRallyWrapper roboRallyWrapper) {
|
||||
if (this.cardChoiceScreen == null) {
|
||||
this.cardChoiceScreen = new CardChoiceScreen(roboRallyWrapper);
|
||||
}
|
||||
return cardChoiceScreen;
|
||||
return new CardChoiceScreen(roboRallyWrapper);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -51,10 +48,7 @@ public class ScreenManager {
|
||||
* @return A power down screen instance
|
||||
*/
|
||||
public synchronized PowerDownScreen getPowerDownScreen(RoboRallyWrapper roboRallyWrapper) {
|
||||
if (this.powerDownScreen == null) {
|
||||
this.powerDownScreen = new PowerDownScreen(roboRallyWrapper);
|
||||
}
|
||||
return powerDownScreen;
|
||||
return new PowerDownScreen(roboRallyWrapper);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user