Added Modularity to Input Checker.

- Added onHold
 - Added onRelease
 - Added ManualTesting Class in the tests
 - Added Unimplemented new methods to classes
 #story[1006]
This commit is contained in:
Fan-Wu Yang
2017-07-24 02:03:33 +12:00
parent f9b2a62f8d
commit d6d195f381
12 changed files with 143 additions and 13 deletions
@@ -0,0 +1,42 @@
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);
}
}