Package games.stendhal.server.core.pathfinder

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


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

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

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


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

      @Override
      protected void createPath() {
        setPath(new FixedPath(Arrays.asList(
          new Node(25, 13),
          new Node(26, 13),
          new Node(26, 8),
          new Node(22, 8),
          new Node(22, 6),
          new Node(8, 6),
          new Node(8, 14),
          new Node(12, 14),
          new Node(12, 22),
          new Node(25, 22)), true));
      }

      @Override
      protected void createDialog() {
        addGreeting("Oh hello, I don't get many visitors here at this #place.");
View Full Code Here

    final SpeakerNPC yetifemale = new SpeakerNPC("Mrs. Yeti") {

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(102, 19));
        nodes.add(new Node(104, 19));
        nodes.add(new Node(102, 15));
        nodes.add(new Node(102, 11));
        nodes.add(new Node(97, 11));
        nodes.add(new Node(97, 13));
        nodes.add(new Node(86, 13));
        nodes.add(new Node(86, 15));
        nodes.add(new Node(82, 15));
        nodes.add(new Node(82, 17));
        nodes.add(new Node(80, 17));
        nodes.add(new Node(83, 25));
        nodes.add(new Node(83, 31));
        nodes.add(new Node(85, 31));
        nodes.add(new Node(85, 33));
        nodes.add(new Node(88, 33));
        nodes.add(new Node(88, 31));
        nodes.add(new Node(98, 31));
        nodes.add(new Node(98, 23));
        nodes.add(new Node(100, 23));
        nodes.add(new Node(100, 21));
        nodes.add(new Node(102, 21));
        setPath(new FixedPath(nodes, true));
      }

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

    final SpeakerNPC yetimale = new SpeakerNPC("Mr. Yeti") {

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(29, 29));
        nodes.add(new Node(17, 29));
        nodes.add(new Node(17, 32));
        nodes.add(new Node(14, 32));
        nodes.add(new Node(14, 38));
        nodes.add(new Node(13, 38));
        nodes.add(new Node(13, 46));
        nodes.add(new Node(19, 46));
        nodes.add(new Node(19, 54));
        nodes.add(new Node(23, 54));
        nodes.add(new Node(21, 54));
        nodes.add(new Node(21, 45));
        nodes.add(new Node(26, 45));
        nodes.add(new Node(26, 37));
        nodes.add(new Node(29, 37));
        setPath(new FixedPath(nodes, true));
      }

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

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

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
                nodes.add(new Node(26,9));
                nodes.add(new Node(26,6));
                nodes.add(new Node(28,6));
                nodes.add(new Node(28,2));
                nodes.add(new Node(28,5));
                nodes.add(new Node(22,5));
                nodes.add(new Node(22,4));
                nodes.add(new Node(22,7));
                nodes.add(new Node(26,7));
        setPath(new FixedPath(nodes, true));
      }

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

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        // to the well
        nodes.add(new Node(15,3));
        // to a barrel
        nodes.add(new Node(15,8));
        // to the baguette on the table
        nodes.add(new Node(13,8));
        // around the table
        nodes.add(new Node(13,10));
        nodes.add(new Node(10,10));
        // to the sink
        nodes.add(new Node(10,12));
        // to the pizza/cake/whatever
        nodes.add(new Node(7,12));
        nodes.add(new Node(7,10));
        // to the pot
        nodes.add(new Node(3,10));
        // towards the oven
        nodes.add(new Node(3,4));
        nodes.add(new Node(5,4));
        // to the oven
        nodes.add(new Node(5,3));
        // one step back
        nodes.add(new Node(5,4));
        // towards the well
        nodes.add(new Node(15,4));
        setPath(new FixedPath(nodes, true));
      }

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

    final SpeakerNPC npc = new SpeakerNPC("Kendra Mattori") {

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(9, 10));
        nodes.add(new Node(14, 10));
        nodes.add(new Node(14, 13));
        nodes.add(new Node(9, 13));
        setPath(new FixedPath(nodes, true));
      }

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

      }

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(22, 43));
        nodes.add(new Node(26, 43));
        nodes.add(new Node(26, 45));
        nodes.add(new Node(31, 45));
        nodes.add(new Node(31, 43));
        nodes.add(new Node(35, 43));
        nodes.add(new Node(35, 29));
        nodes.add(new Node(22, 29));
        setPath(new FixedPath(nodes, true));
      }
     
    };
    npc.setPosition(24, 43);
View Full Code Here

       * Creates a path around the table with the beers and to the furnance.
       */
      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(4, 12));
        nodes.add(new Node(15, 13));
        nodes.add(new Node(15, 9));
        nodes.add(new Node(10, 9));
        nodes.add(new Node(10, 13));
        setPath(new FixedPath(nodes, true));
      }

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

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

      @Override
      protected void createPath() {
        final List<Node> path = new LinkedList<Node>();
        path.add(new Node(15, 26));
        path.add(new Node(28, 26));
        path.add(new Node(28, 32));
        path.add(new Node(25, 32));
        path.add(new Node(25, 38));
        path.add(new Node(37, 38));
        path.add(new Node(37, 27));
        path.add(new Node(33, 27));
        path.add(new Node(33, 23));
        path.add(new Node(45, 23));
        path.add(new Node(45, 33));
        path.add(new Node(52, 33));
        path.add(new Node(52, 31));
        path.add(new Node(50, 31));
        path.add(new Node(50, 46));
        path.add(new Node(57, 46));
        path.add(new Node(57, 49));
        path.add(new Node(67, 49));
        path.add(new Node(67, 40));
        path.add(new Node(46, 40));
        path.add(new Node(46, 50));
        path.add(new Node(46, 31));
        path.add(new Node(37, 31));
        path.add(new Node(37, 38));
        path.add(new Node(25, 38));
        path.add(new Node(25, 32));
        path.add(new Node(15, 32));
        setPath(new FixedPath(path, 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.