forked from External/mage
[UI] Some sounds
This commit is contained in:
parent
5c8ebf393b
commit
de146458a9
7 changed files with 99 additions and 5 deletions
|
|
@ -31,6 +31,7 @@ public class AudioManager {
|
|||
audioManager.endTurnClip = audioManager.loadClip(Constants.BASE_SOUND_PATH + "OnEndTurn.wav");
|
||||
audioManager.tapPermanentClip = audioManager.loadClip(Constants.BASE_SOUND_PATH + "OnTapPermanent.wav");
|
||||
audioManager.summonClip = audioManager.loadClip(Constants.BASE_SOUND_PATH + "OnSummon.wav");
|
||||
audioManager.diedCreatureClip = audioManager.loadClip(Constants.BASE_SOUND_PATH + "OnSummon-.wav");
|
||||
audioManager.drawClip = audioManager.loadClip(Constants.BASE_SOUND_PATH + "OnDraw.wav");
|
||||
audioManager.buttonOkClip = audioManager.loadClip(Constants.BASE_SOUND_PATH + "OnButtonOk.wav");
|
||||
audioManager.buttonCancelClip = audioManager.loadClip(Constants.BASE_SOUND_PATH + "OnButtonCancel.wav");
|
||||
|
|
@ -72,6 +73,10 @@ public class AudioManager {
|
|||
checkAndPlayClip(getManager().summonClip);
|
||||
}
|
||||
|
||||
public static void playDiedCreature() {
|
||||
checkAndPlayClip(getManager().diedCreatureClip);
|
||||
}
|
||||
|
||||
public static void playDraw() {
|
||||
checkAndPlayClip(getManager().drawClip);
|
||||
}
|
||||
|
|
@ -156,6 +161,7 @@ public class AudioManager {
|
|||
private Clip endTurnClip = null;
|
||||
private Clip tapPermanentClip = null;
|
||||
private Clip summonClip = null;
|
||||
private Clip diedCreatureClip = null;
|
||||
private Clip drawClip = null;
|
||||
private Clip buttonOkClip = null;
|
||||
private Clip buttonCancelClip = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue