Examples of PossibleMovePath


Examples of civquest.units.move.PossibleMovePath

    for (MovePath p : paths) {
      if (!(p instanceof PossibleMovePath)) {
        continue;
      }

      PossibleMovePath path = (PossibleMovePath)(p);

      if (path.isEmpty()) {
        continue;
      }


      MoveStep step = path.getFirstStep();
     
      UnitMover.MoveInfo moveInfo
        = unitMover.getMovementChanges(Game.getGame(), step);

      if (moveInfo.canMoveNow()) {
        try {
          moveInfo.executeChanges();
          path.removeFirstStep();
        } catch (Exception ex) {
          Messages.getMessages().err("MoveUnitsToWFAction",
                         "When trying to move units: "
                         + ex);
          System.exit(-1);
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.