Guest User

Untitled

a guest
Aug 16th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. private Point predictPosition(RSTile target) {
  2. RSTile dest = walking.getDestination();
  3. if(dest == null)
  4. return null;
  5. RSTile playerPos = getMyPlayer().getLocation();
  6. RSTile reference = new RSTile(
  7. playerPos.getX() + dest.getX() - target.getX(),
  8. playerPos.getY() + dest.getY() - target.getY());
  9. if(calc.tileOnScreen(reference))
  10. return calc.tileToScreen(reference);
  11. return null;
  12. }
Add Comment
Please, Sign In to add comment