Class LocateQuest


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

      • LocateQuest

        public LocateQuest()
      • LocateQuest

        public LocateQuest​(com.badlogic.gdx.math.Vector2 pos,
                           float r)
        The location to go to and the radius that the player 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:
        has completed
      • getLocation

        public com.badlogic.gdx.math.Vector2 getLocation()