Package games.stendhal.server.core.pathfinder

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


    final SpeakerNPC clerk = new SpeakerNPC("Wilfred") {

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(23, 10));
        nodes.add(new Node(27, 10))
        nodes.add(new Node(27, 8))
        nodes.add(new Node(28, 8));
        nodes.add(new Node(28, 4));
        nodes.add(new Node(25, 4));
        nodes.add(new Node(25, 2));
        nodes.add(new Node(24, 2));
        nodes.add(new Node(24, 5));
               nodes.add(new Node(21, 5));
               nodes.add(new Node(21, 8));
               nodes.add(new Node(23, 8));
        setPath(new FixedPath(nodes, true));
      }

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


    final SpeakerNPC npc = new SpeakerNPC("Felina") {
      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(6, 8));
        nodes.add(new Node(11, 8));
        nodes.add(new Node(11, 17));
        nodes.add(new Node(19, 17));
        nodes.add(new Node(19, 21));
        nodes.add(new Node(14, 21));
        nodes.add(new Node(14, 16));
        nodes.add(new Node(10, 16));
        nodes.add(new Node(10, 4));
        nodes.add(new Node(6, 4));
        setPath(new FixedPath(nodes, true));
      }

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

    final SpeakerNPC greeterNPC = new SpeakerNPC("Xhiphin Zohos") {

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(39, 29));
        nodes.add(new Node(23, 29));
        nodes.add(new Node(23, 21));
        nodes.add(new Node(40, 21));
        setPath(new FixedPath(nodes, true));
      }

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

    final SpeakerNPC npc = new SpeakerNPC("Martin Farmer") {

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(70, 52));
        nodes.add(new Node(76, 52));
        nodes.add(new Node(76, 17));
        nodes.add(new Node(70, 17));
        nodes.add(new Node(70, 14));
        nodes.add(new Node(79, 14));
        nodes.add(new Node(79, 52));
        setPath(new FixedPath(nodes, true));
      }

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

    final SpeakerNPC npc = new SpeakerNPC("Diehelm Brui") {

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(10, 4));
        nodes.add(new Node(10, 8));
        nodes.add(new Node(15, 8));
        nodes.add(new Node(15, 2));
        nodes.add(new Node(3, 2));
        nodes.add(new Node(3, 7));
        nodes.add(new Node(10, 7));
        setPath(new FixedPath(nodes, true));
      }

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

    final SpeakerNPC npc = new SpeakerNPC("Julius") {

      @Override
      protected void createPath() {
        final List<Node> path = new LinkedList<Node>();
        path.add(new Node(84, 109));
        path.add(new Node(84, 116));
        setPath(new FixedPath(path, true));
      }

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

    final SpeakerNPC npc = new SpeakerNPC("Finn Farmer") {

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(114, 77));
        nodes.add(new Node(98, 77));
        nodes.add(new Node(98, 69));
        nodes.add(new Node(116, 69));
        nodes.add(new Node(116, 77));
        setPath(new FixedPath(nodes, true));
      }

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

    final SpeakerNPC bankNPC = new SpeakerNPC("Yance") {

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(15, 3));
        nodes.add(new Node(15, 16));
        setPath(new FixedPath(nodes, true));
      }

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

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        // by the sink
        nodes.add(new Node(5, 7));
        // to the left wall
        nodes.add(new Node(2, 7));
        nodes.add(new Node(11, 7));
        // up one by the armor
        nodes.add(new Node(11, 6));
        nodes.add(new Node(12, 6));
        nodes.add(new Node(12, 5));
        // to the right wall
        nodes.add(new Node(18, 5));
        nodes.add(new Node(18, 3));
        // to the starting point
        nodes.add(new Node(5, 3));
        setPath(new FixedPath(nodes, true));
      }

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

    final SpeakerNPC npc = new SpeakerNPC("Zynn Iwuhos") {

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(15, 3));
        nodes.add(new Node(12, 3));
        nodes.add(new Node(12, 6));
        nodes.add(new Node(13, 6));
        nodes.add(new Node(13, 7));
        nodes.add(new Node(13, 6));
        nodes.add(new Node(15, 6));
        nodes.add(new Node(15, 7));
        nodes.add(new Node(15, 6));
        nodes.add(new Node(17, 6));
        nodes.add(new Node(17, 7));
        nodes.add(new Node(17, 3));
        setPath(new FixedPath(nodes, true));
      }

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

TOP

Related Classes of games.stendhal.server.core.pathfinder.Node

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.