displayed if disabled.
this means you'll get a hiscore entry even if you disable time counter
display. is this a good idea?
Change-Id: Idcdcfea61f2f99fb41e6f08e714249eaac581368
Signed-off-by: gitknilch <gitknilch@cwde.de>
startTime=System.currentTimeMillis();
playTime=0;
baseTime=0;
startTime=System.currentTimeMillis();
playTime=0;
baseTime=0;
- if (app.timeCounter && !timerRegistered) {
+ if (!timerRegistered) {
registerTimer();
}
pairs=app.board.getPairs(1);
registerTimer();
}
pairs=app.board.getPairs(1);
private void onUndoActivate() {
if (app.board.getCanUndo()) {
private void onUndoActivate() {
if (app.board.getCanUndo()) {
- if (cstate==StatePlay.GAMEOVER && app.timeCounter && !timerRegistered) {
+ if (cstate==StatePlay.GAMEOVER && !timerRegistered) {
// Reprogram the time update that had been
// deactivated with the game over status
registerTimer();
// Reprogram the time update that had been
// deactivated with the game over status
registerTimer();
}
public void onTimeCounterActivate() {
}
public void onTimeCounterActivate() {
- if (app.timeCounter && cstate!=StatePlay.GAMEOVER && !timerRegistered) {
+ if (cstate!=StatePlay.GAMEOVER && !timerRegistered) {
// Reprogram the time update that had been
// deactivated with the time_counter=false
registerTimer();
// Reprogram the time update that had been
// deactivated with the time_counter=false
registerTimer();
private void onUpdateTime() {
paint(pstate);
private void onUpdateTime() {
paint(pstate);
- if (!(app.timeCounter && cstate!=StatePlay.GAMEOVER)) {
+ if (cstate==StatePlay.GAMEOVER) {
public void surfaceChanged(SurfaceHolder holder, int format, int width,
int height) {
surfaceHolder = holder;
public void surfaceChanged(SurfaceHolder holder, int format, int width,
int height) {
surfaceHolder = holder;
- if (cstate!=StatePlay.GAMEOVER && app.timeCounter && !timerRegistered) {
+ if (cstate!=StatePlay.GAMEOVER && !timerRegistered) {
registerTimer();
}
repaint();
registerTimer();
}
repaint();