Class QuestCheckingPortal

All Implemented Interfaces:
UseListener, Killer, Cloneable, Iterable<String>, Serializable

public class QuestCheckingPortal extends AccessCheckingPortal
checks the state of a quest
Author:
hendrik
  • Constructor Details

    • QuestCheckingPortal

      public QuestCheckingPortal(String questslot)
      creates a quest checking portal
      Parameters:
      questslot - name of quest slot
    • QuestCheckingPortal

      public QuestCheckingPortal(String questslot, String rejectMessage)
      creates a quest checking portal
      Parameters:
      questslot - name of quest slot
      rejectMessage - message to tell the player, if the condition is not met
    • QuestCheckingPortal

      public QuestCheckingPortal(String questslot, String state, String rejectMessage)
      creates a quest checking portal
      Parameters:
      questslot - name of quest slot
      state - expected state
      rejectMessage - message to tell the player, if the condition is not met
  • Method Details

    • isAllowed

      protected boolean isAllowed(RPEntity user)
      Determine if this portal can be used.
      Specified by:
      isAllowed in class AccessCheckingPortal
      Parameters:
      user - The user to be checked.
      Returns:
      true if the user can use the portal.