mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
77e7db79cc
Fixed the current structure of the server to work with the old StreamReciever style and hook up to the Stream Parser tags: #story[1047] pair[wmu16, mra106]
41 lines
1.1 KiB
Java
41 lines
1.1 KiB
Java
package seng302;
|
|
|
|
import javafx.application.Application;
|
|
import javafx.fxml.FXMLLoader;
|
|
import javafx.scene.Parent;
|
|
import javafx.scene.Scene;
|
|
import javafx.stage.Stage;
|
|
import seng302.models.PolarTable;
|
|
import seng302.models.stream.StreamParser;
|
|
import seng302.models.stream.StreamReceiver;
|
|
import seng302.server.ServerThread;
|
|
|
|
public class App extends Application {
|
|
|
|
@Override
|
|
public void start(Stage primaryStage) throws Exception {
|
|
PolarTable.parsePolarFile(getClass().getResourceAsStream("/config/acc_polars.csv"));
|
|
|
|
Parent root = FXMLLoader.load(getClass().getResource("/views/MainView.fxml"));
|
|
primaryStage.setTitle("RaceVision");
|
|
primaryStage.setScene(new Scene(root, 1530, 960));
|
|
primaryStage.setMaxWidth(1530);
|
|
primaryStage.setMaxHeight(960);
|
|
// primaryStage.setMaximized(true);
|
|
|
|
primaryStage.show();
|
|
primaryStage.setOnCloseRequest(e -> {
|
|
StreamParser.appClose();
|
|
StreamReceiver.noMoreBytes();
|
|
System.exit(0);
|
|
});
|
|
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
launch(args);
|
|
}
|
|
}
|
|
|
|
|