Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Point predictPosition(RSTile target) {
- RSTile dest = walking.getDestination();
- if(dest == null)
- return null;
- RSTile playerPos = getMyPlayer().getLocation();
- RSTile reference = new RSTile(
- playerPos.getX() + dest.getX() - target.getX(),
- playerPos.getY() + dest.getY() - target.getY());
- if(calc.tileOnScreen(reference))
- return calc.tileToScreen(reference);
- return null;
- }
Add Comment
Please, Sign In to add comment