Exemple #1
0
 public void buttonClicked(GGButton button) {
   if (nbTaken == 0) setStatusText("You have to remove at least 1 match");
   else {
     agent.sendCommand(agentName, Command.REPORT_OK);
     okBtn.setEnabled(false);
     isMouseEnabled = false;
   }
 }
Exemple #2
0
 private void initPlayground() {
   okBtn.setEnabled(false);
   isMouseEnabled = false;
   removeActors(Match.class);
   for (int i = 0; i < nbMatches; i++) {
     Match match = new Match();
     addActor(match, new Location(2 + 3 * i, 4));
     match.addMouseTouchListener(this, GGMouse.lClick);
   }
 }