Пример #1
0
 /** If are enable a vibration of 500ms will be activated */
 public void vibration() {
   if (settings.isVibrationActivated()) vib.vibrate(500);
 }
Пример #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();
   }
 }
Пример #3
0
 /** Rolling lose dice sound fx */
 public void playSoundLoseDice() {
   if (settings.isSoundActivated()) {
     if (losedice_sound.isPlaying()) losedice_sound.seekTo(0);
     losedice_sound.start();
   }
 }
Пример #4
0
 /** Wrong action sound */
 public void playErrorSound() {
   if (settings.isSoundActivated()) {
     if (error_sound.isPlaying()) error_sound.seekTo(0);
     error_sound.start();
   }
 }
Пример #5
0
 /** Rolling dice roll_sound */
 public void playSoundRoll() {
   if (settings.isSoundActivated()) {
     if (roll_sound.isPlaying()) roll_sound.seekTo(0);
     roll_sound.start();
   }
 }