Class LocateQuest


  • public class LocateQuest
    extends Quest
    Competed once the player has gone to a specific position
    • Constructor Detail

      • LocateQuest

        public LocateQuest()
        Creates a Location Quest, with all the base attributes filled in with templates
      • LocateQuest

        public LocateQuest​(com.badlogic.gdx.math.Vector2 pos,
                           float r)
        The loc to go to and radius that the play has to be in to complete it
        Parameters:
        pos - location to find
        r - leeway in completion
    • Method Detail

      • checkCompleted

        public boolean checkCompleted​(Player p)
        Description copied from class: Quest
        Checks if the given player has met the complete condition
        Specified by:
        checkCompleted in class Quest
        Parameters:
        p - the player
        Returns:
        The completion status of the quest
      • getLocation

        public com.badlogic.gdx.math.Vector2 getLocation()
        Returns:
        The end location of the quest