Class Quest

  • Direct Known Subclasses:
    KillQuest, LocateQuest

    public abstract class Quest
    extends java.lang.Object
    Base class for all quests facilitates the checking of completion
    • Field Detail

      • name

        protected java.lang.String name
      • description

        protected java.lang.String description
      • reward

        protected int reward
      • isCompleted

        protected boolean isCompleted
    • Constructor Detail

      • Quest

        public Quest()
    • Method Detail

      • checkCompleted

        public abstract boolean checkCompleted​(Player p)
        Checks if the given player has met the complete condition
        Parameters:
        p - the player
        Returns:
        has completed
      • getReward

        public int getReward()
      • isCompleted

        public boolean isCompleted()
      • getName

        public java.lang.String getName()
      • getDescription

        public java.lang.String getDescription()