Back to project page mgcube.
The source code is released under:
qp is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported http://creativecommons.org/licenses/by-nc-nd/3.0/ Your are not allowed to publish this game under your name.
If you think the Android project mgcube 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 de.redlion.qb; /*from w w w. j a v a2s.c om*/ public class HighScoreTimeAttack implements Comparable<HighScoreTimeAttack> { public int usedTime = 0; public int level = 0; public HighScoreTimeAttack(int usedTime, int level) { this.usedTime = usedTime; this.level = level; } @Override public int compareTo(HighScoreTimeAttack o) { if(o.level>this.level) return -1; if(o.usedTime<this.level) return -1; return 1; } }