Beispiel #1
0
 /** If are enable a vibration of 500ms will be activated */
 public void vibration() {
   if (settings.isVibrationActivated()) vib.vibrate(500);
 }
Beispiel #2
0
 /** Clickoff sound (used for hide action) */
 public void playClickoffSound() {
   if (settings.isSoundActivated()) {
     if (clickoff_sound.isPlaying()) clickoff_sound.seekTo(0);
     clickoff_sound.start();
   }
 }
Beispiel #3
0
 /** Rolling lose dice sound fx */
 public void playSoundLoseDice() {
   if (settings.isSoundActivated()) {
     if (losedice_sound.isPlaying()) losedice_sound.seekTo(0);
     losedice_sound.start();
   }
 }
Beispiel #4
0
 /** Wrong action sound */
 public void playErrorSound() {
   if (settings.isSoundActivated()) {
     if (error_sound.isPlaying()) error_sound.seekTo(0);
     error_sound.start();
   }
 }
Beispiel #5
0
 /** Rolling dice roll_sound */
 public void playSoundRoll() {
   if (settings.isSoundActivated()) {
     if (roll_sound.isPlaying()) roll_sound.seekTo(0);
     roll_sound.start();
   }
 }