code: private void prepareDestination(int dtx, int dty)
      {
          pathStopped = false;
          pathStoppedRequested = false;
          destX = dtx;
          destY = dty;
          destinationReached = false;
      }
docs: Prepare the destination, store its location, and reset states.
  
  @param dtx The destination horizontal tile.
  @param dty The destination vertical tile.