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
All Methods Instance Methods Concrete Methods 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, isCompleted
-
-
-
-
Method Detail
-
checkCompleted
public boolean checkCompleted(Player p)
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()
-
-