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);
}