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); }
public void backPGN() { pgnPanel.backPGN(runner.getTurn()); }
public void updatePGN(Localizacion start, Localizacion end) { pgnPanel.updatePGN(start, end, runner.getTurn()); }