Package games.stendhal.server.core.pathfinder

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


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

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

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


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

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

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

    final SpeakerNPC magicbarmaid = new SpeakerNPC("Trillium") {

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

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

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

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(67,68));
        nodes.add(new Node(67,63));
        setPath(new FixedPath(nodes, true));
      }
     
      @Override
      public void createDialog() {
View Full Code Here

  private void buildSemosVillageArea(final StendhalRPZone zone) {
    final SpeakerNPC npc = new SpeakerNPC("Nishiya") {
      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(33, 45));
        nodes.add(new Node(33, 43));
        nodes.add(new Node(23, 43));
        nodes.add(new Node(23, 45));
        setPath(new FixedPath(nodes, true));
      }

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

    final SpeakerNPC blacksheepharry = new SpeakerNPC("Blacksheep Harry") {

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

      }

    @Override
View Full Code Here

    buildNPCs(zone);
  }

  private void buildNPCs(final StendhalRPZone zone) {
    final String[] names = {"Savanka", "Xeoilia", "Azira"};
    final Node[] start = new Node[] { new Node(115, 6), new Node(124, 10), new Node(116, 18) };
    for (int i = 0; i < 3; i++) {
      final SpeakerNPC npc = new SpeakerNPC(names[i]) {

        @Override
        protected void createPath() {
          final List<Node> nodes = new LinkedList<Node>();
          nodes.add(new Node(115, 6));
                    nodes.add(new Node(119, 6));
          nodes.add(new Node(119, 5));
                    nodes.add(new Node(122, 5));
                    nodes.add(new Node(122, 6));
                    nodes.add(new Node(125, 6));
                    nodes.add(new Node(125, 10));
                    nodes.add(new Node(124, 10));
                    nodes.add(new Node(124, 12));
          nodes.add(new Node(123, 12));
          nodes.add(new Node(123, 15));
                    nodes.add(new Node(124, 15));
          nodes.add(new Node(124, 17));
                    nodes.add(new Node(122, 17));
                    nodes.add(new Node(122, 18));
                    nodes.add(new Node(116, 18));
                    nodes.add(new Node(116, 16));
                    nodes.add(new Node(114, 16));
                    nodes.add(new Node(114, 15));
                    nodes.add(new Node(113, 15));
                    nodes.add(new Node(113, 13));
                    nodes.add(new Node(111, 13));
                    nodes.add(new Node(111, 8));
                    nodes.add(new Node(115, 8));
          setPath(new FixedPath(nodes, true));
        }

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

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

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

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

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

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(36,21));
        nodes.add(new Node(36,28));
        setPath(new FixedPath(nodes, true));
      }
     
      @Override
      public void createDialog() {
View Full Code Here

    final SpeakerNPC tavernMaid = new SpeakerNPC("Coralia") {

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(13, 9));
        nodes.add(new Node(13, 7));
        nodes.add(new Node(6, 7));
        nodes.add(new Node(6, 12));
        nodes.add(new Node(10, 12));
        nodes.add(new Node(10, 5));
        nodes.add(new Node(17, 5));
                nodes.add(new Node(17, 3));
                nodes.add(new Node(3, 3));
                nodes.add(new Node(3, 6));
                nodes.add(new Node(13, 6));
        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.