src/main/java/tsz/game/view/GameView.java
/**
	 * Draws the obstacle cars on the window.
	 * @param window - window of the game.
	 */
Draws the obstacle cars on the window.
@param window - window of the game.
Draws the obstacle cars on the window . @param window - window of the game .
public void drawOCars(GameWindow window) {
		 for(Car i : window.getOCars()) {
				try {
					graphicsContext.drawImage(SwingFXUtils.toFXImage(ImageIO.read(this.getClass().getResource("/Images/oCars/" + i.getColor() + ".png")),null), i.getX(), i.getY());
				} catch (IOException e) {
					logger.error(e.toString());
				}
			}
	 }
public void drawOCars ( GameWindow window ) { for ( Car i : window . getOCars ( ) ) { try { graphicsContext . drawImage ( SwingFXUtils . toFXImage ( ImageIO . read ( this . getClass ( ) . getResource ( "/Images/oCars/" + i . getColor ( ) + ".png" ) ) , null ) , i . getX ( ) , i . getY ( ) ) ; } catch ( IOException e ) { logger . error ( e . toString ( ) ) ; } } }
Draws the obstacle cars on the window.
Draws the obstacle cars on the window .