Class MerchantBehaviourResult
java.lang.Object
games.stendhal.common.grammar.ItemParserResult
games.stendhal.server.entity.npc.behaviour.impl.MerchantBehaviourResult
Result of parsing an user request in Behaviour classes.
-
Field Summary
Fields inherited from class games.stendhal.common.grammar.ItemParserResult
amount, chosenItemName, mayBeItems -
Constructor Summary
ConstructorsConstructorDescriptionMerchantBehaviourResult(boolean found, String chosenItemName, int amount, Set<String> mayBeItems) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAmount(int amount) Sets the amount that the player wants to buy from the NPC.Methods inherited from class games.stendhal.common.grammar.ItemParserResult
getAmount, getChosenItemName, getMayBeItems, setChosenItemName, wasFound
-
Constructor Details
-
MerchantBehaviourResult
-
-
Method Details
-
setAmount
public void setAmount(int amount) Sets the amount that the player wants to buy from the NPC.- Overrides:
setAmountin classItemParserResult- Parameters:
amount- amount
-