Back to project page MentalMathX.
The source code is released under:
GNU General Public License
If you think the Android project MentalMathX 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 net.schlingel.bplaced.mentalmathx.controller; //from w w w. j a va 2 s. c o m import net.schlingel.bplaced.mentalmathx.math.Term; import net.schlingel.bplaced.mentalmathx.model.Result; /** * Created by zombie on 27.06.14. * * Similar to the android lifecycle the game itself knows different states too. * reset * +------+ +------- initialize/setValues * | | | * Y | Y * +-----------+ * | running |<---+ * +-----------+ | * | pause | resume * Y | * +-----------+ | * | paused |----+ * +-----------+ */ public interface GameController { public void onFigureInput(int figure); public void onTimeChange(long timeInSec); public void reset(); public void pause(); public void resume(); public void setValues(Term currentExercise, int correctGuesses, int wrongGuesses, long timeInSeconds); }