wrote getter for ceremonyview in mdga app

This commit is contained in:
Hanno Fleischer
2024-12-11 13:34:38 +01:00
parent c069a61f2d
commit ea25f66dae
2 changed files with 6 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ public class MdgaApp extends SimpleApplication {
private final TimerManager timerManager = new TimerManager(); private final TimerManager timerManager = new TimerManager();
public static final int DEBUG_MULTIPLIER = 1; public static final int DEBUG_MULTIPLIER = 0;
public MdgaApp() { public MdgaApp() {
networkConnection = new NetworkSupport(this); networkConnection = new NetworkSupport(this);
@@ -351,5 +351,9 @@ public GameView getGameView() {
public TimerManager getTimerManager() { public TimerManager getTimerManager() {
return timerManager; return timerManager;
} }
public CeremonyView getCeremonyView() {
return ceremonyView;
}
} }

View File

@@ -133,7 +133,7 @@ private void handleGame(Notification notification) {
app.getAcousticHandler().playSound(MdgaSound.UI90); app.getAcousticHandler().playSound(MdgaSound.UI90);
delay = STANDARD_DELAY; delay = STANDARD_DELAY;
} else if (notification instanceof CeremonyNotification ceremonyNotification) { } else if (notification instanceof CeremonyNotification ceremonyNotification) {
CeremonyView ceremonyView = app.ceremonyView; CeremonyView ceremonyView = app.getCeremonyView();
int size = ceremonyNotification.getNames().size(); int size = ceremonyNotification.getNames().size();
if (ceremonyNotification.getPiecesThrown().size() != size || if (ceremonyNotification.getPiecesThrown().size() != size ||