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, plunderReward, pointReward
-
-
Constructor Summary
Constructors Constructor Description LocateQuest()
Creates a Location Quest, with all the base attributes filled in with templatesLocateQuest(com.badlogic.gdx.math.Vector2 pos, float r)
The loc to go to and radius that the play 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, getPlunderReward, getPointReward, isCompleted
-
-
-
-
Constructor Detail
-
LocateQuest
public LocateQuest()
Creates a Location Quest, with all the base attributes filled in with templates
-
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 complete it- Parameters:
pos
- location to findr
- 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 classQuest
- Parameters:
p
- the player- Returns:
- The completion status of the quest
-
getLocation
public com.badlogic.gdx.math.Vector2 getLocation()
- Returns:
- The end location of the quest
-
-