WorldController(Game game, UIProvider ui) { this.game = game; this.ui = ui; world = new World(); world.setBroomLocation(0, CurlingConstants.TEE_TO_CENTER); ui.setWorld(world); }
public void broomMoved(double x, double y) { world.setBroomLocation(x, y); game.sendBroom(x, y); }