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 GhostNPCBase("Mary") {
      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(65, 74));
        nodes.add(new Node(43, 74));
        nodes.add(new Node(43, 69));
        nodes.add(new Node(37, 69));
        nodes.add(new Node(37, 65));
        nodes.add(new Node(34, 65));
        nodes.add(new Node(34, 58));
        nodes.add(new Node(31, 58));
        nodes.add(new Node(31, 52));
        nodes.add(new Node(28, 52));
        nodes.add(new Node(28, 46));
        nodes.add(new Node(26, 46));
        nodes.add(new Node(26, 41));
        nodes.add(new Node(25, 41));
        nodes.add(new Node(25, 38));
        nodes.add(new Node(36, 38));
        nodes.add(new Node(36, 43));
        nodes.add(new Node(45, 43));
        nodes.add(new Node(45, 46));
        nodes.add(new Node(61, 46));
        nodes.add(new Node(61, 54));
        nodes.add(new Node(63, 54));
        nodes.add(new Node(63, 58));
        nodes.add(new Node(64, 58));
        nodes.add(new Node(64, 66));
        nodes.add(new Node(65, 66));
        setPath(new FixedPath(nodes, true));
      }
    };
 
    ghost.setDescription("You see a ghostly figure of a woman.");
View Full Code Here


  private void buildNPC(final StendhalRPZone zone, final Map<String, String> attributes) {
    final SpeakerNPC rat = new RatKidsNPCBase("Avalon") {
      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(97, 5));
        nodes.add(new Node(100, 5));
        nodes.add(new Node(100, 14));
        nodes.add(new Node(97, 14));
        setPath(new FixedPath(nodes, true));
      }
    };

    rat.setDescription("You see a rat child.");
View Full Code Here

  private void buildBoutiqueArea(final StendhalRPZone zone) {
    final SpeakerNPC npc = new SpeakerNPC("Liliana") {
      @Override
      protected void createPath() {
          final List<Node> nodes = new LinkedList<Node>();
          nodes.add(new Node(16, 5));
          nodes.add(new Node(16, 16));
          nodes.add(new Node(26, 16));
          nodes.add(new Node(26, 5));
          setPath(new FixedPath(nodes, true));
      }

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

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

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

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

    SpeakerNPC npc = new SpeakerNPC("Eheneumniranin") {

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(77, 96));
        nodes.add(new Node(77, 98));
        nodes.add(new Node(81, 98));
        nodes.add(new Node(81, 100));
        nodes.add(new Node(85, 100));
        nodes.add(new Node(85, 107));
        nodes.add(new Node(75, 107));
        nodes.add(new Node(75, 96));

        setPath(new FixedPath(nodes, true));
      }

      @Override
View Full Code Here

    final SpeakerNPC hagnurk = new SpeakerNPC("Hagnurk") {

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(104, 3));
        nodes.add(new Node(109, 3));
        nodes.add(new Node(109, 8));
        nodes.add(new Node(108, 8));
        nodes.add(new Node(108, 10));
        nodes.add(new Node(109, 10));
        nodes.add(new Node(109, 13));
        nodes.add(new Node(104, 13));
        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(64, 75));
        nodes.add(new Node(64, 86))
        nodes.add(new Node(68, 86))
        nodes.add(new Node(68, 84));
        nodes.add(new Node(76, 84));
        nodes.add(new Node(68, 84));
        nodes.add(new Node(68, 86));
        nodes.add(new Node(60, 86));
        nodes.add(new Node(60, 89));
        nodes.add(new Node(60, 86));
        nodes.add(new Node(64, 86));
        setPath(new FixedPath(nodes, true));
      }
     
      @Override
      protected void createDialog() {
View Full Code Here

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

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(41, 40));
        nodes.add(new Node(51, 40));
        nodes.add(new Node(51, 46));
        nodes.add(new Node(58, 46));
        nodes.add(new Node(58, 42));
        nodes.add(new Node(51, 42));
        nodes.add(new Node(51, 40));
        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 ghost = new GhostNPCBase("Goran") {
      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        nodes.add(new Node(216, 127));
        nodes.add(new Node(200, 127));
        nodes.add(new Node(200, 120));
        nodes.add(new Node(216, 120));
        nodes.add(new Node(216, 122));
        nodes.add(new Node(200, 122));
        nodes.add(new Node(200, 124));
        nodes.add(new Node(216, 124));
        setPath(new FixedPath(nodes, true));
      }
    };

    ghost.setDescription("You see a ghostly figure of a man. He appears to have died in battle.");
View Full Code Here

      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        // to stove
        nodes.add(new Node(7, 44));
        // to table
        nodes.add(new Node(7, 52));
        // around couch
        nodes.add(new Node(14, 57));
        nodes.add(new Node(22, 57));
        // into the floor
        nodes.add(new Node(18, 50));
        nodes.add(new Node(19, 42));
        // into the bathroom
        nodes.add(new Node(39, 42));
        // into the floor
        nodes.add(new Node(18, 42));
        // into the bedroom
        nodes.add(new Node(18, 29));
        // to the chest
        nodes.add(new Node(17, 24));
        // through the floor
        nodes.add(new Node(18, 34));
        nodes.add(new Node(18, 51));
        // back to the kitchen
        nodes.add(new Node(7, 51));
        nodes.add(new Node(4, 44));
        nodes.add(new Node(4, 47));
        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.