Class OutfitChangerAdder

java.lang.Object
games.stendhal.server.entity.npc.behaviour.adder.OutfitChangerAdder

public class OutfitChangerAdder extends Object
  • Constructor Details

    • OutfitChangerAdder

      public OutfitChangerAdder()
  • Method Details

    • addOutfitChanger

      public void addOutfitChanger(SpeakerNPC npc, OutfitChangerBehaviour behaviour, String command)
      Makes this NPC an outfit changer, i.e. someone who can give players special outfits.
      Parameters:
      npc - SpeakerNPC
      behaviour - 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 - SpeakerNPC
      outfitBehaviour - 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

      protected String getReturnPhrase()