Class OutfitChangerAdder
java.lang.Object
games.stendhal.server.entity.npc.behaviour.adder.OutfitChangerAdder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addOutfitChanger(SpeakerNPC npc, OutfitChangerBehaviour behaviour, String command)
Makes this NPC an outfit changer, i.e.void
addOutfitChanger(SpeakerNPC npc, OutfitChangerBehaviour outfitBehaviour, String action, boolean offer, boolean canReturn)
Makes this NPC an outfit changer, i.e.protected String
-
Constructor Details
-
OutfitChangerAdder
public OutfitChangerAdder()
-
-
Method Details
-
addOutfitChanger
Makes this NPC an outfit changer, i.e. someone who can give players special outfits.- Parameters:
npc
- SpeakerNPCbehaviour
- The behaviour (which includes a pricelist).command
- The action needed to get the outfit, e.g. "buy", "lend".
-
addOutfitChanger
public void addOutfitChanger(SpeakerNPC npc, OutfitChangerBehaviour outfitBehaviour, String action, boolean offer, boolean canReturn)Makes this NPC an outfit changer, i.e. someone who can give players special outfits.- Parameters:
npc
- SpeakerNPCoutfitBehaviour
- The behaviour (which includes a pricelist).action
- The action needed to get the outfit, e.g. "buy", "lend".offer
- Defines if the NPC should react to the word "offer".canReturn
- If true, a player can say "return" to get his original outfit back.
-
getReturnPhrase
-