src/main/java/tsz/game/view/GameView.java
/**
	 * Draws on the game window.
	 * @param window - Window of the game.
	 */
Draws on the game window.
@param window - Window of the game.
Draws on the game window . @param window - Window of the game .
public void draw(GameWindow window) {
		graphicsContext.clearRect(0, 0, WIDTH, HEIGHT);
		for(int i = 0; i < this.numberOfLanes ; i++) {
			graphicsContext.setFill(Color.WHITE);
			graphicsContext.fillRect((i+1)*this.getLaneWidth(), 0, 1, GameView.HEIGHT);
		}
		drawOCars(window);
		drawPlayersCar(window);
		showScore(window);
	}
public void draw ( GameWindow window ) { graphicsContext . clearRect ( 0 , 0 , WIDTH , HEIGHT ) ; for ( int i = 0 ; i < this . numberOfLanes ; i ++ ) { graphicsContext . setFill ( Color . WHITE ) ; graphicsContext . fillRect ( ( i + 1 ) * this . getLaneWidth ( ) , 0 , 1 , GameView . HEIGHT ) ; } drawOCars ( window ) ; drawPlayersCar ( window ) ; showScore ( window ) ; }
Draws on the game window.
Draws on the game window .