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