Class MerchantBehaviourResult

java.lang.Object
games.stendhal.common.grammar.ItemParserResult
games.stendhal.server.entity.npc.behaviour.impl.MerchantBehaviourResult

public final class MerchantBehaviourResult extends ItemParserResult
Result of parsing an user request in Behaviour classes.
  • Constructor Details

    • MerchantBehaviourResult

      public MerchantBehaviourResult(boolean found, String chosenItemName, int amount, Set<String> mayBeItems)
  • Method Details

    • setAmount

      public void setAmount(int amount)
      Sets the amount that the player wants to buy from the NPC.
      Overrides:
      setAmount in class ItemParserResult
      Parameters:
      amount - amount