Ejemplo n.º 1
0
 public boolean check4newHighScore(int points, int levels) {
   boolean n = false;
   readRS();
   for (int i = 0; i < 5; i++) {
     ScoreItem item = (ScoreItem) list.elementAt(i);
     if (points > item.points) {
       if (currentName == null) {
         menu.show(
             new Alert(null, "Neuer Score", null, AlertType.INFO),
             new NameInputField(points, levels, i + 1));
         n = true;
       } else {
         list.insertElementAt(
             new ScoreItem(currentName, points, levels, System.currentTimeMillis()), i);
         list.removeElementAt(5);
         save2RS();
         currentName = null;
         // menu.abortGame();
       }
       return n;
     }
   }
   return n;
 }
Ejemplo n.º 2
0
 public void commandAction(Command comm, Displayable disp) {
   if (comm == toMain) menu.show(menu);
 }