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 location to go to and the radius that the player has to be in to complete it
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkCompleted(Player p)
Checks if the given player has met the complete conditioncom.badlogic.gdx.math.Vector2
getLocation()
-
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:Quest
Checks if the given player has met the complete condition- Specified by:
checkCompleted
in classQuest
- Parameters:
p
- the player- Returns:
- has completed
-
getLocation
public com.badlogic.gdx.math.Vector2 getLocation()
-
-