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; // w w w . j a v a 2s. com import com.lucythemoocher.R; public class StateNormal extends SoundsState { public StateNormal(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); } } @Override void increaseNormal() { super.increaseNormal(); if ( mesuresToLive_ <= 0 ) { changeState(new StateLevel1(context_, MTL_NORMAL)); } } @Override void increaseQuick() { super.increaseQuick(); if ( mesuresToLive_ <= 0 ) { changeState(new StateLevel1(context_, MTL_QUICK)); } } @Override void decreaseNormal() { super.decreaseNormal(); } @Override void decreaseQuickly() { super.decreaseQuickly(); } }