Changes to code to use new controller structure.

- renamed javadoc referencing old controllers
- keybindings no longer need to be static
- finished lobby and lobbyhost controllers

#story[1261]
This commit is contained in:
Jessica Syder
2017-09-08 22:07:16 +12:00
parent a5050b8ea8
commit 0dff85006a
15 changed files with 31 additions and 48 deletions
@@ -27,19 +27,16 @@ import javafx.stage.StageStyle;
import javafx.stage.WindowEvent;
import javafx.util.Duration;
import mock.app.Event;
import visualiser.gameController.Keys.KeyFactory;
public class App extends Application {
private static Stage stage;
public static Event game;
private Pane splashLayout;
private ProgressBar loadProgress;
private Label progressText;
private static final int SPLASH_WIDTH = 676;
private static final int SPLASH_HEIGHT = 227;
public static KeyFactory keyFactory;
public static App app = new App();
public static Event game;
/**
* Entry point for running the programme
@@ -51,10 +48,6 @@ public class App extends Application {
@Override
public void init() {
// load the user's personalised key bindings
keyFactory = new KeyFactory();
keyFactory.load();
ImageView splash = new ImageView(new Image(
getClass().getClassLoader().getResourceAsStream("images/splashScreen.png")
));