mirror of
https://github.com/correl/mage.git
synced 2024-12-29 19:15:06 +00:00
* Added sound for starting game.
This commit is contained in:
parent
8748220ce2
commit
cee5d0d487
3 changed files with 11 additions and 0 deletions
BIN
Mage.Client/sounds/OnYourGameStarted.wav
Normal file
BIN
Mage.Client/sounds/OnYourGameStarted.wav
Normal file
Binary file not shown.
|
@ -377,6 +377,8 @@ public final class GamePanel extends javax.swing.JPanel {
|
|||
this.gameChatPanel.connect(session.getGameChatId(gameId));
|
||||
if (!session.joinGame(gameId)) {
|
||||
removeGame();
|
||||
} else {
|
||||
AudioManager.playYourGameStarted();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@ public class AudioManager {
|
|||
private MageClip onCountdown1 = null;
|
||||
private MageClip onDraftSelect = null;
|
||||
|
||||
private MageClip yourGameStarted = null;
|
||||
private MageClip playerJoinedTable = null;
|
||||
private MageClip playerSubmittedDeck = null;
|
||||
private MageClip playerWhispered = null;
|
||||
|
@ -237,6 +238,14 @@ public class AudioManager {
|
|||
checkAndPlayClip(getManager().playerJoinedTable);
|
||||
}
|
||||
|
||||
public static void playYourGameStarted() {
|
||||
if (audioManager.yourGameStarted == null) {
|
||||
audioManager.yourGameStarted = new MageClip(audioManager.loadClip(Constants.BASE_SOUND_PATH + "OnYourGameStarted.wav"),
|
||||
AudioGroup.GameSounds);
|
||||
}
|
||||
checkAndPlayClip(getManager().yourGameStarted);
|
||||
}
|
||||
|
||||
public static void playPlayerWhispered() {
|
||||
if (audioManager.playerWhispered == null) {
|
||||
audioManager.playerWhispered = new MageClip(audioManager.loadClip(Constants.BASE_SOUND_PATH + "OnPlayerWhispered.wav"),
|
||||
|
|
Loading…
Reference in a new issue