package nl.joshuaslik.tudelft.SEM.control;

import java.io.IOException;

import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
import javafx.scene.shape.Rectangle;
import javafx.scene.text.Text;

/**
 * Controller for the game UI.
 * @author Bastijn
 */
public class GameController {
	
	@FXML
	private static Pane pane;
	
	@FXML
	private static Rectangle timeRectangle;
	
	@FXML
	private static Text livesText, levelText, scoreText;
	
	/**
	 * Starts the Game GUI scene.
	 * @param stage the current stage
	 * @throws IOException thrown when FXML is not parsed
	 */
	public static void start(Stage stage) throws IOException {
		FXMLLoader loader = new FXMLLoader();
		loader.setLocation(Class.class.getResource("/data/gui/pages/GameGUI.fxml"));
		pane = loader.load();
		Scene scene = new Scene(pane);
		
		stage.setScene(scene);
		stage.setFullScreen(true);
		stage.setFullScreenExitHint("");
		stage.show();
	}
	
	/**
	 * Method to return the timeRectangle
	 * @return Rectangle timeRectangle
	 */
	//I created this method because i thought it would come in handy with the changing the length
	//Of this rectangle. I don't really know if this method is in the right place though.
	//To alter the length of this rectangle, we can use timeRectangle.setWidth(X);
	public static Rectangle getTimeRectangle() {
		return timeRectangle;
	}
}

@@ -66,16 +66,129 @@
 ption;%0A%0A
+import nl.joshuaslik.tudelft.SEM.model.container.Point;%0Aimport nl.joshuaslik.tudelft.SEM.model.container.Vector;%0A
 import j
@@ -1105,16 +1105,1007 @@
 show();%0A
+%09%09%0A%09%09Point topLeft = new Point(0, 0);%0A%09%09Point topRight = new Point(1920, 0);%0A%09%09Point bottomLeft = new Point(0, 880);%0A%09%09Point bottomRight = new Point(1920, 880);%0A%09%09%0A%09%09Line top = new Line(topLeft, topRight);%0A%09%09pane.getChildren().add(top.getNode());%0A%09%09CurrentSceneObjects.addObject(top);%0A%09%09%0A%09%09Line left = new Line(topLeft, bottomLeft);%0A%09%09pane.getChildren().add(left.getNode());%0A%09%09CurrentSceneObjects.addObject(left);%0A%09%09%0A%09%09Line right = new Line(topRight, bottomRight);%0A%09%09pane.getChildren().add(right.getNode());%0A%09%09CurrentSceneObjects.addObject(right);%0A%09%09%0A%09%09Line bottom = new Line(bottomLeft, bottomRight);%0A%09%09pane.getChildren().add(bottom.getNode());%0A%09%09CurrentSceneObjects.addObject(bottom);%0A%09%09%0A%09%09// create 1 bubble%0A%09%09//Point bubbleCenter = new Point(200, 300);%0A%09%09//double bubbleRadius = 50;%0A%09%09//Vector bubbleDirection = new Vector(-2, -5);%0A%09%09//Bubble bubble = new Bubble(bubbleCenter, bubbleRadius, bubbleDirection);%0A%09%09//pane.getChildren().add(bubble.getNode());%0A%09%09%0A%09%09//bubble.startAnimation();%0A
 %09%7D%0A%09%0A%09/*

Make window inside Game GUI