Class HealerBehaviour
java.lang.Object
games.stendhal.common.grammar.ItemParser
games.stendhal.server.entity.npc.behaviour.impl.Behaviour
games.stendhal.server.entity.npc.behaviour.impl.TransactionBehaviour
games.stendhal.server.entity.npc.behaviour.impl.MerchantBehaviour
games.stendhal.server.entity.npc.behaviour.impl.SellerBehaviour
games.stendhal.server.entity.npc.behaviour.impl.HealerBehaviour
Represents the behaviour of a NPC who is able to heal a player. This can either be done for free or paid in a lump sum, or for a price depending on level of the player
Use SpeakerNPC.addHealer() to assign this behaviour to an NPC.
-
Field Summary
Fields inherited from class games.stendhal.server.entity.npc.behaviour.impl.SellerBehaviour
BAD_BOY_BUYING_PENALTYFields inherited from class games.stendhal.server.entity.npc.behaviour.impl.MerchantBehaviour
priceCalculatorFields inherited from class games.stendhal.common.grammar.ItemParser
itemNames -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class games.stendhal.server.entity.npc.behaviour.impl.SellerBehaviour
getAskedItem, getAskedItem, transactAgreedDeal, updatePlayerTransactionsMethods inherited from class games.stendhal.server.entity.npc.behaviour.impl.MerchantBehaviour
addConditions, dealtItems, getCharge, getItemNames, getUnitPrice, hasItemMethods inherited from class games.stendhal.server.entity.npc.behaviour.impl.Behaviour
getRejectedTransactionAction, getTransactionConditionMethods inherited from class games.stendhal.common.grammar.ItemParser
getErrormessage, parse
-
Constructor Details
-
HealerBehaviour
public HealerBehaviour(int cost) Creates a new HealerBehaviour.- Parameters:
cost- The lump sum that is required to heal
-
-
Method Details
-
heal
Restores the given player's health to the maximum possible at the player's current level.- Parameters:
player- The player who should be healed.
-