Fikset imports

This commit is contained in:
Steinar Aalstad Lillesund 2020-04-06 16:16:06 +02:00
parent 3e024d0b89
commit a6e3ac1173

View File

@ -9,6 +9,7 @@ import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import com.badlogic.gdx.utils.viewport.FitViewport;
import com.badlogic.gdx.utils.viewport.Viewport;
import inf112.fiasko.roborally.utility.IOUtil;
public class LobbyScreen extends AbstractScreen {
private final RoboRallyWrapper roboRallyWrapper;
@ -32,6 +33,7 @@ public class LobbyScreen extends AbstractScreen {
startGameButton.addListener(new InputListener() {
@Override
public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
IOUtil.playerGenerator(roboRallyWrapper.server.getPlayerNames(), roboRallyWrapper.server.getRobotID());
roboRallyWrapper.setScreen(roboRallyWrapper.screenManager.getBoardActiveScreen(roboRallyWrapper));
return true;//her we do stuff
}