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_PENALTY
Fields inherited from class games.stendhal.server.entity.npc.behaviour.impl.MerchantBehaviour
priceCalculator
Fields inherited from class games.stendhal.common.grammar.ItemParser
itemNames
-
Constructor Summary
-
Method Summary
Methods inherited from class games.stendhal.server.entity.npc.behaviour.impl.SellerBehaviour
getAskedItem, getAskedItem, transactAgreedDeal, updatePlayerTransactions
Methods inherited from class games.stendhal.server.entity.npc.behaviour.impl.MerchantBehaviour
dealtItems, getCharge, getUnitPrice, hasItem
Methods inherited from class games.stendhal.server.entity.npc.behaviour.impl.Behaviour
getRejectedTransactionAction, getTransactionCondition
Methods inherited from class games.stendhal.common.grammar.ItemParser
getErrormessage, getItemNames, 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.
-