@Override
	public void setCurrentCourse(List<Integer> course)
	{
		this.courseDirection=-1;
		this.courseDirections.clear();
		for(Integer dirIndex : course)
		{
			int dir=dirIndex.intValue();
			if(dir>=0)
			{
				if(courseDirection < 0)
				{
					courseDirection = dir;
					directionFacing = dir;
				}
				else
					this.courseDirections.add(Integer.valueOf(dir));
			}
		}
		this.courseDirections.add(Integer.valueOf(-1));
	}