@Override
	public void unDock(boolean toSpace)
	{
		final LocationRoom R=getIsDocked();
		if(R!=null)
		{
			R.delItem(this);
			setOwner(null);
		}
		if (area instanceof SpaceShip)
			((SpaceShip)area).unDock(toSpace);
		if(R!=null)
		{
			setDirection(R.getDirectionFromCore());
			setFacing(R.getDirectionFromCore());
		}
		if(toSpace)
		{
			final SpaceObject o = getShipSpaceObject();
			if((o != null)&&(R!=null))
				CMLib.map().addObjectToSpace(o,R.coordinates());
		}
	}