Examples of SeedSellerBehaviour


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

    final Map<String, Integer> requiredResources = new TreeMap<String, Integer>();
    requiredResources.put("grain", 5);

    final ProducerBehaviour behaviour = new ProducerBehaviour("jenny_mill_flour",
        "mill", "flour", requiredResources, 2 * 60);
    new SellerAdder().addSeller(npc, new SeedSellerBehaviour());
    new ProducerAdder().addProducer(npc, behaviour,"Greetings! I am Jenny, the local miller. If you bring me some #grain, I can #mill it into flour for you.");
    npc.setPosition(19, 39);
    npc.setDescription("You see Jenny. She is the local miller.");
    npc.setDirection(Direction.DOWN);
    npc.setEntityClass("woman_003_npc")
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.