Examples of FixedPath


Examples of games.stendhal.server.core.pathfinder.FixedPath

          final List<Node> nodes = new LinkedList<Node>();
          nodes.add(new Node(5, 7));
          nodes.add(new Node(5, 20));
          nodes.add(new Node(9, 20));
          nodes.add(new Node(9, 7));
          setPath(new FixedPath(nodes, true));
      }

      @Override
      protected void createDialog() {
        class SpecialOutfitChangerBehaviour extends OutfitChangerBehaviour {
View Full Code Here

Examples of games.stendhal.server.core.pathfinder.FixedPath

        if ((path == null) || (path.size() == 0)) {
          distances.remove(chosen);
          chosen = null;
        } else {
          // set the path. if not setMovement() will search a new one
          setPath(new FixedPath(path, false));
        }
      }
    }
    // return the chosen enemy or null if we could not find one in reach
    return chosen;
View Full Code Here

Examples of games.stendhal.server.core.pathfinder.FixedPath

        nodes.add(new Node(44 ,109));
        nodes.add(new Node(44, 100));
        nodes.add(new Node(34, 100));
        nodes.add(new Node(34, 104));
        nodes.add(new Node(40, 104));
        setPath(new FixedPath(nodes, true));
      }
    };

    rat.setDescription("You see a rat child.");
    rat.setEntityClass("ratchildboy1npc");
View Full Code Here

Examples of games.stendhal.server.core.pathfinder.FixedPath

        nodes.add(new Node(63, 54));
        nodes.add(new Node(63, 58));
        nodes.add(new Node(64, 58));
        nodes.add(new Node(64, 66));
        nodes.add(new Node(65, 66));
        setPath(new FixedPath(nodes, true));
      }
    };
 
    ghost.setDescription("You see a ghostly figure of a woman.");
    ghost.setResistance(0);
View Full Code Here

Examples of games.stendhal.server.core.pathfinder.FixedPath

        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(97, 5));
        nodes.add(new Node(100, 5));
        nodes.add(new Node(100, 14));
        nodes.add(new Node(97, 14));
        setPath(new FixedPath(nodes, true));
      }
    };

    rat.setDescription("You see a rat child.");
    rat.setEntityClass("ratchildboy2npc");
View Full Code Here

Examples of games.stendhal.server.core.pathfinder.FixedPath

          final List<Node> nodes = new LinkedList<Node>();
          nodes.add(new Node(16, 5));
          nodes.add(new Node(16, 16));
          nodes.add(new Node(26, 16));
          nodes.add(new Node(26, 5));
          setPath(new FixedPath(nodes, true));
      }

      @Override
      protected void createDialog() {
        class SpecialOutfitChangerBehaviour extends OutfitChangerBehaviour {
View Full Code Here

Examples of games.stendhal.server.core.pathfinder.FixedPath

        nodes.add(new Node(9, 8));
        nodes.add(new Node(9, 9));
        nodes.add(new Node(2, 9));
        nodes.add(new Node(2, 3));
        nodes.add(new Node(7, 3));
        setPath(new FixedPath(nodes, true));
      }

      @Override
      protected void createDialog() {
        addGreeting();
View Full Code Here

Examples of games.stendhal.server.core.pathfinder.FixedPath

        nodes.add(new Node(85, 100));
        nodes.add(new Node(85, 107));
        nodes.add(new Node(75, 107));
        nodes.add(new Node(75, 96));

        setPath(new FixedPath(nodes, true));
      }

      @Override
      public void createDialog() {
        addGreeting("Salve straniero...");
View Full Code Here

Examples of games.stendhal.server.core.pathfinder.FixedPath

        if (path.size() != 0) {

          logger.debug("Sheep moves to food");
          setIdea("food");

          setPath(new FixedPath(path, false));
          return true;
        }

      }
View Full Code Here

Examples of games.stendhal.server.core.pathfinder.FixedPath

        nodes.add(new Node(108, 8));
        nodes.add(new Node(108, 10));
        nodes.add(new Node(109, 10));
        nodes.add(new Node(109, 13));
        nodes.add(new Node(104, 13));
        setPath(new FixedPath(nodes, true));

      }

      @Override
      protected void createDialog() {
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.