Package buildcraft.core.robots

Examples of buildcraft.core.robots.AIRobotGotoSleep


          }
        }
      }

      if (markerToBuild == null) {
        startDelegateAI(new AIRobotGotoSleep(robot));
        return;
      }
    }

    if (markerToBuild == null || !markerToBuild.needsToBuild()) {
View Full Code Here


    if (ai instanceof AIRobotGotoStationToLoad) {
      if (ai.success()) {
        startDelegateAI(new AIRobotLoad(robot, new ArrayStackFilter(requirementsToLookFor.getFirst()),
            requirementsToLookFor.getFirst().stackSize));
      } else {
        startDelegateAI(new AIRobotGotoSleep(robot));
      }
    } else if (ai instanceof AIRobotLoad) {
      // TODO: check that we get the proper items in
      requirementsToLookFor.removeFirst();
    } else if (ai instanceof AIRobotGotoBlock) {
View Full Code Here

  @Override
  public void delegateAIEnded(AIRobot ai) {
    if (ai instanceof AIRobotSearchStackRequest) {
      if (!ai.success()) {
        deliveryBlacklist.clear();
        startDelegateAI(new AIRobotGotoSleep(robot));
      } else {
        currentRequest = ((AIRobotSearchStackRequest) ai).request;

        if (!currentRequest.station.take(robot)) {
          currentRequest = null;
View Full Code Here

      }

      indexStored = ((AIRobotSearchBlock) ai).blockFound;

      if (indexStored == null) {
        startDelegateAI(new AIRobotGotoSleep(robot));
      } else {
        if (robot.getRegistry().take(new ResourceIdBlock(indexStored), robot)) {
          startDelegateAI(new AIRobotGotoBlock(robot, ((AIRobotSearchBlock) ai).path));
        }
      }
View Full Code Here

TOP

Related Classes of buildcraft.core.robots.AIRobotGotoSleep

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.