Back to project page LucyTheMoocher.
The source code is released under:
MIT License
If you think the Android project LucyTheMoocher listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.lucythemoocher.sounds; /*from w w w .ja v a 2 s.c om*/ import com.lucythemoocher.R; public class StateLevel3 extends SoundsState { public StateLevel3(SoundManager context, int mesuresToLive) { super(context, mesuresToLive); } @Override void changeMesure() { super.changeMesure(); if ( mesures_%2 == 1 ) { context_.playSound(R.raw.theme1); } else { context_.playSound(R.raw.theme2); } context_.playSound(R.raw.lvl3_1); } @Override void increaseNormal() { super.increaseNormal(); } @Override void increaseQuick() { super.increaseQuick(); } @Override void decreaseNormal() { super.decreaseNormal(); if ( mesuresToLive_ <= 0 ) { changeState(new StateLevel2(context_, MTL_NORMAL)); } } @Override void decreaseQuickly() { super.decreaseQuickly(); if ( mesuresToLive_ <= 0 ) { changeState(new StateLevel2(context_, MTL_NORMAL)); } } }