Package com.mygdx.game.Quests
Class KillQuest
- java.lang.Object
-
- com.mygdx.game.Quests.Quest
-
- com.mygdx.game.Quests.KillQuest
-
public class KillQuest extends Quest
A Quest to kill a college is only complete once that college is dead
-
-
Field Summary
-
Fields inherited from class com.mygdx.game.Quests.Quest
description, isCompleted, name, plunderReward, pointReward
-
-
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 conditionPirate
getTarget()
Added for Assessment 2-
Methods inherited from class com.mygdx.game.Quests.Quest
getDescription, getName, getPlunderReward, getPointReward, isCompleted
-
-
-
-
Constructor Detail
-
KillQuest
public KillQuest()
Creates a Kill Quest, with all the base attributes filled in with templates
-
KillQuest
public KillQuest(Pirate target)
Creates a Kill Quest- Parameters:
target
- The Pirate which needs to be defeated for the quest
-
KillQuest
public KillQuest(Entity target)
Creates a Kill Quest- Parameters:
target
- The Entity which needs to be defeated for the quest
-
-
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
-
getTarget
public Pirate getTarget()
Added for Assessment 2- Returns:
- the target of this quest
-
-