Package games.stendhal.server.entity.npc.behaviour.impl

Examples of games.stendhal.server.entity.npc.behaviour.impl.ProducerBehaviour


       
        final Map<String, Integer> requiredResources = new TreeMap<String, Integer>()
        requiredResources.put("tea", 1);
        requiredResources.put("sandwich", 1);

        final ProducerBehaviour behaviour = new SpecialProducerBehaviour("swap", "kalavan city scroll", requiredResources, 1 * 60);

        new ProducerAdder().addProducer(this, behaviour,
                "Fine day, isn't it?");
        addQuest("I'd love a cup of #tea, it's thirsty work, gardening. If you bring me a #sandwich too I'll #swap you for a magic scroll.");
        addReply(Arrays.asList("tea", "cup of tea"), "Old Granny Graham may brew you a cup. She's in that big cottage over there.");
View Full Code Here


    final Map<String, Integer> requiredResources = new TreeMap<String, Integer>();
    requiredResources.put("flour", 1);
    requiredResources.put("cod", 2);
    requiredResources.put("mackerel", 1);
    requiredResources.put("leek", 1);
    final ProducerBehaviour behaviour = new ProducerBehaviour("linzo_make_fish_pie", "make", "fish pie",
            requiredResources, 5 * 60);
   
    producerRegister.add("Linzo", behaviour);
   
    assertFalse(producerRegister.getProducers().isEmpty());
View Full Code Here

        final Map<String, Integer> requiredResources = new TreeMap<String, Integer>()
        requiredResources.put("milk", 1);
        requiredResources.put("honey", 1);

        final ProducerBehaviour behaviour = new ProducerBehaviour("granny_brew_tea",
            "brew", "tea", requiredResources, 3 * 60);

        new ProducerAdder().addProducer(this, behaviour,
                "Hello, dear.");
        addReply("milk",
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.npc.behaviour.impl.ProducerBehaviour

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.