Development #34

Merged
j23f0779 merged 19 commits from development into dev/model 2024-12-05 17:58:51 +01:00
33 changed files with 763 additions and 121 deletions
Showing only changes of commit 2255bfd648 - Show all commits

View File

@@ -149,7 +149,7 @@ else if(boardSelect != null) {
if (name.equals("Right")) { if (name.equals("Right")) {
isRotateRight = !isRotateRight; isRotateRight = !isRotateRight;
} }
if(name.equals("Test") &&isPressed){ if(name.equals("Test2") &&isPressed){
if(app.getView() instanceof GameView gameView){ if(app.getView() instanceof GameView gameView){
if(p == null) { if(p == null) {

View File

@@ -128,7 +128,7 @@ public void simpleInitApp() {
gameView = new GameView(this); gameView = new GameView(this);
ceremonyView = new CeremonyView(this); ceremonyView = new CeremonyView(this);
enter(MdgaState.GAME); enter(MdgaState.MAIN);
} }
/** /**

View File

@@ -1,5 +1,6 @@
package pp.mdga.client; package pp.mdga.client;
import pp.mdga.client.acoustic.MdgaSound;
import pp.mdga.client.board.BoardHandler; import pp.mdga.client.board.BoardHandler;
import pp.mdga.client.gui.GuiHandler; import pp.mdga.client.gui.GuiHandler;
import pp.mdga.client.view.CeremonyView; import pp.mdga.client.view.CeremonyView;
@@ -91,6 +92,7 @@ private void handleGame(Notification notification) {
} else if (notification instanceof ActivePlayerNotification n) { } else if (notification instanceof ActivePlayerNotification n) {
gameView.getGuiHandler().setActivePlayer(n.getColor()); gameView.getGuiHandler().setActivePlayer(n.getColor());
boardHandler.showDice(n.getColor()); boardHandler.showDice(n.getColor());
app.getAcousticHandler().playSound(MdgaSound.UI90);
} else if (notification instanceof CeremonyNotification ceremonyNotification) { } else if (notification instanceof CeremonyNotification ceremonyNotification) {
app.enter(MdgaState.CEREMONY); app.enter(MdgaState.CEREMONY);
CeremonyView ceremonyView = (CeremonyView) app.getView(); CeremonyView ceremonyView = (CeremonyView) app.getView();

View File

@@ -123,6 +123,9 @@ public void playSound(MdgaSound sound) {
case BONUS: case BONUS:
assets.add(new SoundAssetDelayVolume(SoundAsset.BONUS, 1.0f, 0.0f)); assets.add(new SoundAssetDelayVolume(SoundAsset.BONUS, 1.0f, 0.0f));
break; break;
case UI90:
assets.add(new SoundAssetDelayVolume(SoundAsset.UI90, 1.0f, 0.0f));
break;
default: default:
break; break;
} }

View File

@@ -35,4 +35,5 @@ public enum MdgaSound {
EXPLOSION, EXPLOSION,
LOSE, LOSE,
BONUS, BONUS,
UI90,
} }