java.lang.Object
games.stendhal.common.grammar.ItemParser
games.stendhal.server.entity.npc.behaviour.impl.Behaviour
Direct Known Subclasses:
TransactionBehaviour

public class Behaviour extends ItemParser
Behaviour is the base class for all quest behaviours parsing a sentence to get an amount and an item name.
Author:
Martin Fuchs
  • Constructor Details

    • Behaviour

      public Behaviour()
    • Behaviour

      public Behaviour(Set<String> itemNames)
    • Behaviour

      public Behaviour(String itemName)
  • Method Details

    • getTransactionCondition

      public ChatCondition getTransactionCondition()
      a chat condition that checks whether transactions are possible at all
      Returns:
      ChatCondition
    • getRejectedTransactionAction

      public ChatAction getRejectedTransactionAction()
      a chat action that is executed in case transaction are not possible
      Returns:
      ChatAction