Example #1
0
  public void actionPerformed(ActionEvent event) {
    int command = Integer.parseInt(event.getActionCommand());

    if (command >= 0) {
      int x = command % 10;
      int y = command / 10;

      Localizacion loc = processLocation(new Localizacion(y, x));
      runner.processOne(loc);
    } else runner.processTwo(command);
  }
Example #2
0
 public void backPGN() {
   pgnPanel.backPGN(runner.getTurn());
 }
Example #3
0
 public void updatePGN(Localizacion start, Localizacion end) {
   pgnPanel.updatePGN(start, end, runner.getTurn());
 }