src/main/java/tsz/game/controller/GameController.java
/**
	 * Move the player's car to the right direction.
	 * @see tsz.game.view.ActionOnKeyEvents#moving()
	 */
Move the player's car to the right direction.
Move the player ' s car to the right direction .
@Override
	public EventHandler<? super KeyEvent> moving() {		
		return keyEvent -> {
				switch (keyEvent.getCode()) {
				case LEFT : 
					this.movingLeft.stop();
					this.movingLeft.start();
					return;
				case RIGHT:
					this.movingRight.stop();
					this.movingRight.start();
					return;
				case UP:
					this.movingUp.stop();
					this.movingUp.start();
					return;
				case DOWN:
					this.movingDown.stop();
					this.movingDown.start();
					return;
				default: return;
				}	
		};
	}
@ Override public EventHandler < ? super KeyEvent > moving ( ) { return keyEvent -> { switch ( keyEvent . getCode ( ) ) { case LEFT : this . movingLeft . stop ( ) ; this . movingLeft . start ( ) ; return ; case RIGHT : this . movingRight . stop ( ) ; this . movingRight . start ( ) ; return ; case UP : this . movingUp . stop ( ) ; this . movingUp . start ( ) ; return ; case DOWN : this . movingDown . stop ( ) ; this . movingDown . start ( ) ; return ; default : return ; } } ; }
Move the player's car to the right direction.
Move the player ' s car to the right direction .