Package org.powerbot.game.api.wrappers.node

Examples of org.powerbot.game.api.wrappers.node.SceneObject


                }
                return false;
            }
        });

        SceneObject bestNode = null;
        Node bestNodeValue = null;

        for (SceneObject object : realNodes) {
            if (object.validate()) {
                final Node tempNode = Node.getNode(object.getId());

                if (bestNode == null || tempNode.ordinal() > bestNodeValue.ordinal() ||
                        (tempNode.ordinal() == bestNodeValue.ordinal() &&
                                distanceTo(object.getLocation()) < distanceTo(bestNode.getLocation()))) {
                    bestNode = object;
                    bestNodeValue = tempNode;
                }
            }
        }
View Full Code Here


        if (!SudoRunespan.isNodeBlock()) {
            if (runeEss == null || runeEss.getStackSize() < 50) {
                SudoRunespan.setNodeBlock(true);
            } else {
                final SceneObject node = Methods.getBestReachableNode();

                if (node != null) {
                    if (node.getId() != SudoRunespan.getCurrentId()) {
                        SudoRunespan.setTarget(node);
                        SudoRunespan.setCurrentId(node.getId());
                        entity = node;
                        return true;
                    } else {
                        return false;
                    }
View Full Code Here

        final int num = Random.nextInt(0, 20);

        if (num <= 1) {
            Camera.setPitch(Random.nextInt(0, 100));
        } else if (num <= 6) {
            SceneObject o = SceneEntities.getNearest(new Filter<SceneObject>() {
                @Override
                public boolean accept(SceneObject sceneObject) {
                    return Random.nextInt(0, 10) == 0;
                }
            });
View Full Code Here

TOP

Related Classes of org.powerbot.game.api.wrappers.node.SceneObject

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.