Package games.stendhal.server.entity.npc

Examples of games.stendhal.server.entity.npc.RatKidsNPCBase


  public void configureZone(final StendhalRPZone zone, final Map<String, String> attributes) {
    buildNPC(zone, attributes);
  }

  private void buildNPC(final StendhalRPZone zone, final Map<String, String> attributes) {
    final SpeakerNPC rat = new RatKidsNPCBase("Cody") {
      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
        //path goes here
        nodes.add(new Node(40, 105));
        nodes.add(new Node(40, 109));
        nodes.add(new Node(44 ,109));
        nodes.add(new Node(44, 100));
        nodes.add(new Node(34, 100));
        nodes.add(new Node(34, 104));
        nodes.add(new Node(40, 104));
        setPath(new FixedPath(nodes, true));
      }
    };

    rat.setDescription("You see a rat child.");
    rat.setEntityClass("ratchildboy1npc");
    rat.setPosition(40, 105);
    rat.initHP(100);
    zone.add(rat);
  }
View Full Code Here


  public void configureZone(final StendhalRPZone zone, final Map<String, String> attributes) {
    buildNPC(zone, attributes);
  }

  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.");
    rat.setEntityClass("ratchildboy2npc");
    rat.setPosition(97, 5);
    rat.initHP(100);
    zone.add(rat);
  }
View Full Code Here

  public void configureZone(final StendhalRPZone zone, final Map<String, String> attributes) {
    buildNPC(zone, attributes);
  }

  private void buildNPC(final StendhalRPZone zone, final Map<String, String> attributes) {
    final SpeakerNPC rat = new RatKidsNPCBase("Mariel") {
      @Override
      protected void createPath() {
        final List<Node> nodes = new LinkedList<Node>();
                                //path goes here
                                nodes.add(new Node(45, 19));
                                nodes.add(new Node(65, 19));
                                nodes.add(new Node(65, 54));
                                nodes.add(new Node(69, 54));
                                nodes.add(new Node(69, 15));
                                nodes.add(new Node(45, 15));
                               
                                setPath(new FixedPath(nodes, true));
      }
    };

    rat.setDescription("You see a rat child.");
    rat.setEntityClass("ratchild2npc");
    rat.setPosition(45, 19);
    rat.initHP(100);
    zone.add(rat);
  }
View Full Code Here

  public void configureZone(final StendhalRPZone zone, final Map<String, String> attributes) {
    buildNPC(zone, attributes);
  }

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

    rat.setDescription("You see a rat child.");
    rat.setEntityClass("ratchild1npc");
    rat.setPosition(5, 75);
    rat.initHP(100);
    zone.add(rat);
  }
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.npc.RatKidsNPCBase

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.