Examples of canReach()


Examples of org.powerbot.game.api.wrappers.Tile.canReach()

        if (!Calculations.isOnScreen(entity.getCentralPoint())) {
            synchronized (mouseLock) {
                final Tile randTile = new Tile(loc.getX(), loc.getY(), loc.getPlane());
                randTile.derive(Random.nextInt(-1, 2), Random.nextInt(-1, 2));
                final LocalPath localPath = Walking.findPath(randTile.canReach() ? randTile : loc);
                localPath.getNext();
                final Tile[] tilePath = truncatePath(localPath.getTilePath().toArray(), 3);
                (new TilePath(tilePath)).traverse();
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.