Beispiel #1
0
  public void timeOut() {
    // TODO Auto-generated method stub
    // Check if high score & display high score
    if (m_high_score.inHighscore(_score.getScore())) {
      //			Log.i(Constant.TAG, "High Score");
      // 			Display InputName dialog
      m_activity.runOnUiThread(
          new Runnable() {

            @Override
            public void run() {
              // TODO Auto-generated method stub
              new DialogName(m_activity).show();
            }
          });
    } else {
      displayGameOver();
    }
  }
Beispiel #2
0
 public void updateHighScore(String name) {
   Log.i(Constant.TAG, name);
   m_high_score.addScore(name, _score.getScore());
 }