code: private void onArrived()
      {
          destinationReached = true;
          moving = false;
          path = null;
          moveX = 0.0;
          moveY = 0.0;
          sharedPathIds.clear();
          for (final PathfindableListener listener : listeners)
          {
              listener.notifyArrived();
          }
      }
docs: Called when destination has been reached and any movement are done.