Package games.stendhal.server.core.pathfinder

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


  private void buildNPC(final StendhalRPZone zone, final Map<String, String> attributes) {
    final SpeakerNPC ghost = new SpeakerNPC("Ben") {
      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(34, 121));
        nodes.add(new Node(24, 121));
        nodes.add(new Node(24, 112));
        nodes.add(new Node(13, 112));
        nodes.add(new Node(13, 121));
        nodes.add(new Node(6, 121));
        nodes.add(new Node(6, 112));
        nodes.add(new Node(13, 112));
        nodes.add(new Node(13, 121));
        nodes.add(new Node(24, 121));
        nodes.add(new Node(24, 112));
        nodes.add(new Node(34, 112));
        setPath(new FixedPath(nodes, true));
      }

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


    final SpeakerNPC npc = new SpeakerNPC("Erodel Bmud") {

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(99, 111));
        nodes.add(new Node(106, 111));
        nodes.add(new Node(106, 98));
        nodes.add(new Node(105, 98));
        nodes.add(new Node(105, 89));
        nodes.add(new Node(107, 89));
        nodes.add(new Node(107, 44));
        nodes.add(new Node(104, 44));
        nodes.add(new Node(104, 40));
        nodes.add(new Node(57, 40));
        nodes.add(new Node(57, 51));
        nodes.add(new Node(93, 51));
        nodes.add(new Node(57, 51));
        nodes.add(new Node(57, 40));
        nodes.add(new Node(104, 40));
        nodes.add(new Node(104, 44));
        nodes.add(new Node(107, 44));
        nodes.add(new Node(107, 89));
        nodes.add(new Node(105, 89));
        nodes.add(new Node(105, 98));
        nodes.add(new Node(106, 98));
        nodes.add(new Node(106, 111));
        setPath(new FixedPath(nodes, true));
      }

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

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

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(62, 105));
        nodes.add(new Node(63, 105));
        nodes.add(new Node(64, 105));
        nodes.add(new Node(65, 105));
        nodes.add(new Node(64, 105));
        nodes.add(new Node(63, 105));
        setPath(new FixedPath(nodes, true));
      }

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

    final SpeakerNPC mcpegleg = new SpeakerNPC("McPegleg") {

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

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

    final SpeakerNPC npc = new SpeakerNPC("Barbarus") {
       
      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(70, 115));
        nodes.add(new Node(69, 117));
                nodes.add(new Node(69, 120));
                nodes.add(new Node(72, 120))
                nodes.add(new Node(76, 123));
                nodes.add(new Node(80, 121));
                nodes.add(new Node(83, 119));
                nodes.add(new Node(83, 115));
                nodes.add(new Node(79, 115));
                nodes.add(new Node(79, 113));
                nodes.add(new Node(74, 113));
                nodes.add(new Node(74, 112));
                nodes.add(new Node(70, 112));
                 setPath(new FixedPath(nodes, true));

      }

      @Override
View Full Code Here


            @Override
            protected void createPath() {
                final List<Node> nodes = new LinkedList<Node>();
                nodes.add(new Node(46, 20));
                nodes.add(new Node(46, 21));
                nodes.add(new Node(50, 21));
                nodes.add(new Node(50, 20));
                nodes.add(new Node(46, 21));
                setPath(new FixedPath(nodes, true));
            }
       
        };
        npc.setPosition(46, 20);
View Full Code Here

    final SpeakerNPC npc = new SpeakerNPC("Miss Parillaud") {

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

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

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

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(9, 23));
        nodes.add(new Node(13, 23));
        nodes.add(new Node(13, 25));
        nodes.add(new Node(17, 25));
        nodes.add(new Node(17, 23));
        nodes.add(new Node(21, 23));
        nodes.add(new Node(21, 27));
        nodes.add(new Node(17, 27));
        nodes.add(new Node(17, 25));
        nodes.add(new Node(13, 25));
        nodes.add(new Node(13, 23));
        setPath(new FixedPath(nodes, true));
      }

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

    final SpeakerNPC ladynpc = new SpeakerNPC("Nnyddion") {

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

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

    final SpeakerNPC npc = new SpeakerNPC("Andy") {
       
      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(41, 6));
        nodes.add(new Node(41, 11));
                nodes.add(new Node(64, 11));
                nodes.add(new Node(64, 6))
                nodes.add(new Node(63, 6));
                nodes.add(new Node(63, 10));
                nodes.add(new Node(42, 10));
                nodes.add(new Node(42, 6));
                nodes.add(new Node(41, 6));
                 setPath(new FixedPath(nodes, true));

      }

      @Override
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.