Add missle sound

This commit is contained in:
Felix Koppe
2024-10-13 08:02:24 +02:00
parent 34929b40f1
commit 5cb0843819
4 changed files with 17 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ public AnimationState(ClientGameLogic logic, boolean myTurn, IntPoint position)
logic.getOpponentMap().add(shell);
} else {
logic.getOwnMap().add(shell);
logic.playSound(Sound.MISSLE_FLYBY);
}
}

View File

@@ -22,5 +22,9 @@ public enum Sound {
/**
* Sound of a ship being destroyed.
*/
DESTROYED_SHIP
DESTROYED_SHIP,
/**
* Sound of an incomming missle.
*/
MISSLE_FLYBY,
}