Class LocateQuest

java.lang.Object
com.mygdx.game.Quests.Quest
com.mygdx.game.Quests.LocateQuest

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

    Fields inherited from class com.mygdx.game.Quests.Quest

    description, isCompleted, name, reward
  • Constructor Summary

    Constructors
    Constructor Description
    LocateQuest()  
    LocateQuest​(com.badlogic.gdx.math.Vector2 pos, float r)
    The loc to go to and radius that the play has to be in to completed it
  • Method Summary

    Modifier and Type Method Description
    boolean checkCompleted​(Player p)
    Checks if the given player has met the complete condition
    com.badlogic.gdx.math.Vector2 getLocation()  

    Methods inherited from class com.mygdx.game.Quests.Quest

    getDescription, getName, getReward, isCompleted

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LocateQuest

      public LocateQuest()
    • 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 completed it
      Parameters:
      pos - location to find
      r - leeway in completion
  • Method Details

    • 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()