Exemplo n.º 1
0
 private void initGameWindow() {
   bg = getBg();
   bg.clear(Color.blue);
   addActor(okBtn, new Location(50, 4));
   okBtn.addButtonListener(this);
   show();
 }
Exemplo n.º 2
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;
   }
 }
Exemplo n.º 3
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);
   }
 }