You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.1 KiB
43 lines
1.1 KiB
package seng302;
|
|
|
|
import javafx.application.Application;
|
|
import javafx.application.Platform;
|
|
import javafx.event.EventHandler;
|
|
import javafx.scene.Scene;
|
|
import javafx.scene.layout.GridPane;
|
|
import javafx.stage.Stage;
|
|
import javafx.stage.WindowEvent;
|
|
import seng302.gameController.InputChecker;
|
|
|
|
/**
|
|
* Start to manually test the game controller
|
|
*/
|
|
public class GameControllerManualTest extends Application {
|
|
|
|
@Override
|
|
public void start(Stage stage) throws Exception {
|
|
stage.setOnCloseRequest(new EventHandler<WindowEvent>() {
|
|
@Override
|
|
public void handle(WindowEvent event) {
|
|
Platform.exit();
|
|
System.exit(0);
|
|
}
|
|
});
|
|
|
|
GridPane root = new GridPane();
|
|
Scene scene = new Scene(root, 1200, 800);
|
|
|
|
InputChecker inputChecker = new InputChecker();
|
|
inputChecker.runWithScene(scene);
|
|
|
|
stage.setScene(scene);
|
|
stage.setTitle("RaceVision - Team 7 - Input Tester Manual Test");
|
|
stage.show();
|
|
}
|
|
|
|
|
|
public static void main(String[] args) {
|
|
launch(args);
|
|
}
|
|
}
|