Package games.stendhal.server.core.pathfinder

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


  }

  @Override
  protected void createPath() {
    final List<Node> nodes = new LinkedList<Node>();
    nodes.add(new Node(37, 13));
    nodes.add(new Node(31, 13));
    nodes.add(new Node(31, 10));
    nodes.add(new Node(35, 10));
    nodes.add(new Node(35, 4));
    nodes.add(new Node(25, 4));
    nodes.add(new Node(25, 15));
    nodes.add(new Node(15, 15));
    nodes.add(new Node(15, 9));
    nodes.add(new Node(18, 9));
    nodes.add(new Node(18, 4));
    nodes.add(new Node(18, 10));
    nodes.add(new Node(15, 10));
    nodes.add(new Node(15, 16));
    nodes.add(new Node(25, 16));
    nodes.add(new Node(25, 3));
    nodes.add(new Node(35, 3));
    nodes.add(new Node(35, 10));
    nodes.add(new Node(37, 10));
    setPath(new FixedPath(nodes, true));
  }
View Full Code Here


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

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(24, 7));
        nodes.add(new Node(21, 7));
        nodes.add(new Node(21, 9));
        nodes.add(new Node(15, 9));
        nodes.add(new Node(15, 12));
        nodes.add(new Node(13, 12));
        nodes.add(new Node(13, 27));
        nodes.add(new Node(22, 27));
        nodes.add(new Node(13, 27));
        nodes.add(new Node(13, 12));
        nodes.add(new Node(15, 12));
        nodes.add(new Node(15, 9));
        nodes.add(new Node(21, 9));
        nodes.add(new Node(21, 7));
        nodes.add(new Node(24, 7));
        setPath(new FixedPath(nodes, true));
      }

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

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

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(55, 84));
        nodes.add(new Node(68, 84));
        nodes.add(new Node(68, 84));
        nodes.add(new Node(68, 71));
        nodes.add(new Node(57, 71));
        nodes.add(new Node(57, 76));
        nodes.add(new Node(57, 75));
        nodes.add(new Node(53, 75));
        nodes.add(new Node(53, 82));
        nodes.add(new Node(55, 82));
        setPath(new FixedPath(nodes, true));
      }

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

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

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(3, 12));
        nodes.add(new Node(40, 12));
        nodes.add(new Node(40, 28));
        nodes.add(new Node(58, 28));
        nodes.add(new Node(58, 91));
        nodes.add(new Node(99, 91));
        nodes.add(new Node(99, 76));
        nodes.add(new Node(36, 76));
        nodes.add(new Node(36, 37));
        nodes.add(new Node(3, 37));
        setPath(new FixedPath(nodes, true));
      }

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

    final SpeakerNPC JailedBarbNPC = new SpeakerNPC("Lorenz") {

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

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

    final SpeakerNPC princessNPC = new SpeakerNPC("Princess Esclara") {

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

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

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

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(8, 27));
        nodes.add(new Node(3, 27));
        nodes.add(new Node(3, 13));
        nodes.add(new Node(20, 13));
        nodes.add(new Node(20, 18));
        nodes.add(new Node(28, 18));
        nodes.add(new Node(28, 7));
        nodes.add(new Node(12, 7));
        nodes.add(new Node(12, 13));
        nodes.add(new Node(3, 13));
        nodes.add(new Node(3, 27));
        setPath(new FixedPath(nodes, true));
      }

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

    final SpeakerNPC fishyguy = new SpeakerNPC("Fishmonger") {

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(63, 89));
        nodes.add(new Node(63, 88));       
        nodes.add(new Node(64, 88));
        nodes.add(new Node(64, 87));
        nodes.add(new Node(68, 87));
        nodes.add(new Node(68, 89));
        setPath(new FixedPath(nodes, true));

      }

      @Override
View Full Code Here

    final SpeakerNPC seamstress = new SpeakerNPC("lda") {

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

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

  private void buildNPC(final StendhalRPZone zone, final Map<String, String> attributes) {
    final SpeakerNPC npc = new SpeakerNPC("Ivan Abe") {
      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(3, 7));
        nodes.add(new Node(12, 7));
        nodes.add(new Node(12, 3));
        nodes.add(new Node(6, 3));
        nodes.add(new Node(6, 7));
        nodes.add(new Node(3, 7));
        setPath(new FixedPath(nodes, true));
      }
    };

    npc.setEntityClass("wannabekingnpc");
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.