Package org.powerbot.game.api.wrappers.map

Examples of org.powerbot.game.api.wrappers.map.TilePath


                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();
            }

            Camera.turnTo(loc.derive(Random.nextInt(-2, 5), Random.nextInt(-2, 5)));
        } else {
            synchronized (mouseLock) {
                if (!entity.interact(action, option)) {
                    final LocalPath localPath = Walking.findPath(loc);
                    localPath.getNext();
                    final Tile[] tilePath = truncatePath(localPath.getTilePath().toArray(), 3);
                    (new TilePath(tilePath)).traverse();
                }
            }

            wiggleMouse();
            Time.sleep(Random.nextInt(1000, 1500));
View Full Code Here

TOP

Related Classes of org.powerbot.game.api.wrappers.map.TilePath

Copyright © 2018 www.massapicom. 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.