private void setupPlayer2() { listener2 = mock(EventListener.class); player2 = new Player(listener2, game); joystick2 = player2.getJoystick(); dice(hero2.getX(), hero2.getY()); game.newGame(player2); hero2.init(game); }
private void setupPlayer1() { listener1 = mock(EventListener.class); player1 = new Player(listener1, game); joystick1 = player1.getJoystick(); dice(hero1.getX(), hero1.getY()); game.newGame(player1); hero1.init(game); }