Package com.mygdx.game.Quests
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 booleancheckCompleted(Player p)Checks if the given player has met the complete conditioncom.badlogic.gdx.math.Vector2getLocation()Methods inherited from class com.mygdx.game.Quests.Quest
getDescription, getName, getReward, isCompletedMethods 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 findr- leeway in completion
-
-
Method Details
-
checkCompleted
Description copied from class:QuestChecks if the given player has met the complete condition- Specified by:
checkCompletedin classQuest- Parameters:
p- the player- Returns:
- has completed
-
getLocation
public com.badlogic.gdx.math.Vector2 getLocation()
-