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; // www . ja v a2 s . co m import com.lucythemoocher.R; public class StateLevel2 extends SoundsState { public StateLevel2(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.lvl2_1); } @Override void increaseNormal() { super.increaseNormal(); if ( mesuresToLive_ <= 0 ) { changeState(new StateLevel3(context_, MTL_NORMAL)); } } @Override void increaseQuick() { super.increaseQuick(); if ( mesuresToLive_ <= 0 ) { changeState(new StateLevel3(context_, MTL_QUICK)); } } @Override void decreaseNormal() { super.decreaseNormal(); if ( mesuresToLive_ <= 0 ) { changeState(new StateLevel1(context_, MTL_NORMAL)); } } @Override void decreaseQuickly() { super.decreaseQuickly(); if ( mesuresToLive_ <= 0 ) { changeState(new StateLevel1(context_, MTL_NORMAL)); } } }