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.
38 lines
847 B
38 lines
847 B
package seng302.Controllers;
|
|
|
|
import javafx.fxml.FXML;
|
|
import javafx.scene.control.SplitPane;
|
|
import javafx.scene.layout.GridPane;
|
|
import seng302.RaceXMLReader;
|
|
|
|
import java.net.URL;
|
|
import java.util.ResourceBundle;
|
|
|
|
/**
|
|
* Created by fwy13 on 15/03/2017.
|
|
*/
|
|
public class MainController extends Controller {
|
|
@FXML StartController startController;
|
|
@FXML RaceController raceController;
|
|
|
|
|
|
public void beginRace(int scaleFactor) {
|
|
raceController.startRace(scaleFactor);
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Main Controller for the applications will house the menu and the displayed pane.
|
|
*
|
|
* @param location of resources
|
|
* @param resources bundle
|
|
*/
|
|
@Override
|
|
public void initialize(URL location, ResourceBundle resources) {
|
|
startController.setParent(this);
|
|
raceController.setParent(this);
|
|
}
|
|
}
|