Package com.bergerkiller.bukkit.tc.actions

Examples of com.bergerkiller.bukkit.tc.actions.GroupActionWaitPathFinding


        // If the current node denotes the destination - don't switch!
        if (!LogicUtil.nullOrEmpty(destination) && !node.containsName(destination)) {
          if (PathProvider.isProcessing()) {
            double currentForce = info.getGroup().getAverageForce();
            // Add an action to let the train wait until the node IS explored
            info.getGroup().getActions().addAction(new GroupActionWaitPathFinding(info, node, destination));
            info.getMember().getActions().addActionLaunch(info.getMember().getDirectionFrom(), 1.0, currentForce);
            info.getGroup().stop();
          } else {
            // Switch the rails to the right direction
            PathConnection conn = node.findConnection(destination);
View Full Code Here

TOP

Related Classes of com.bergerkiller.bukkit.tc.actions.GroupActionWaitPathFinding

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.