From: bluelads <blu...@us...> - 2010-09-20 16:24:17
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/maps/ados/market In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv10316/src/games/stendhal/server/maps/ados/market Added Files: FishSoupMakerNPC.java Log Message: Added new NPC Florence Boullabaisse to Ados Market --- NEW FILE: FishSoupMakerNPC.java --- /* $Id: FishSoupMakerNPC.java,v 1.1 2010/09/20 16:24:03 bluelads99 Exp $ */ /*************************************************************************** * (C) Copyright 2003-2010 - Stendhal * *************************************************************************** *************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ package games.stendhal.server.maps.ados.market; import games.stendhal.common.Direction; import games.stendhal.server.core.config.ZoneConfigurator; import games.stendhal.server.core.engine.StendhalRPZone; import games.stendhal.server.core.pathfinder.FixedPath; import games.stendhal.server.core.pathfinder.Node; import games.stendhal.server.entity.npc.SpeakerNPC; import java.util.LinkedList; import java.util.List; import java.util.Map; /** * Builds a npc in Ados (name:Florence Boullabaisse) who is a fish soup maker on the market * * @author Krupi (fish soup idea) Vanessa Julius (implemented) * */ public class FishSoupMakerNPC implements ZoneConfigurator { public void configureZone(final StendhalRPZone zone, final Map<String, String> attributes) { buildNPC(zone); } private void buildNPC(final StendhalRPZone zone) { final SpeakerNPC npc = new SpeakerNPC("Florence Boullabaisse") { @Override protected void createPath() { final List<Node> nodes = new LinkedList<Node>(); nodes.add(new Node(63, 14)); nodes.add(new Node(70, 14)); nodes.add(new Node(70, 10)); nodes.add(new Node(67, 10)); nodes.add(new Node(67, 14)); nodes.add(new Node(64, 14)); nodes.add(new Node(64, 10)); nodes.add(new Node(63, 10)); setPath(new FixedPath(nodes, true)); } @Override protected void createDialog() { addGreeting("Hello and welcome on Ados market!"); addHelp("As though as my fish soup isn't ready yet, I can suggest a good friend of mine to you, Old Mother Helena in Fado. She makes the best vegetable soups in whole Faiumoni!"); addQuest("I can already smell the best soup of the world, a nice made fish soup... Unfortunetly the market isn't build up yet, I am still waiting for my kitchen equipment..."); addJob("I am a trained cook but specialized into soups. My most favourite soup is a fish soup but I also like normal ones..."); addOffer("I can't offer you anything at the moment... I still try to figure out, what the best receipe for my fish soup will be..."); addGoodbye("Have a nice stay and day on Ados market!"); } }; npc.setDescription("You see Florence Boullabaisse. She is an excellent soup chef."); npc.setEntityClass("fishsoupmakernpc"); npc.setPosition(63, 14); npc.setDirection(Direction.RIGHT); npc.initHP(100); zone.add(npc); } } |