Class TransactionBehaviour

Direct Known Subclasses:
MerchantBehaviour, MultiProducerBehaviour, ProducerBehaviour, RepairerBehaviour

public abstract class TransactionBehaviour extends Behaviour
  • Constructor Details

    • TransactionBehaviour

      public TransactionBehaviour(String itemName)
    • TransactionBehaviour

      public TransactionBehaviour(Set<String> itemNames)
  • Method Details

    • transactAgreedDeal

      public abstract boolean transactAgreedDeal(ItemParserResult res, EventRaiser seller, Player player)
      Transacts the deal that is described in BehaviourResult.
      Parameters:
      res - result of the Behaviour parsing
      seller - The NPC who sells/buys
      player - The player who buys/sells
      Returns:
      true if the transaction was successful.