Package com.mygdx.game.Quests
Class Quest
- java.lang.Object
 - 
- com.mygdx.game.Quests.Quest
 
 
- 
- Direct Known Subclasses:
 KillQuest,LocateQuest
public abstract class Quest extends java.lang.ObjectBase class for all quests facilitates the checking of completion 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringdescriptionprotected booleanisCompletedprotected java.lang.Stringnameprotected intplunderRewardprotected intpointReward 
- 
Constructor Summary
Constructors Constructor Description Quest()Constructs a quest with base values filled in 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleancheckCompleted(Player p)Checks if the given player has met the complete conditionjava.lang.StringgetDescription()java.lang.StringgetName()intgetPlunderReward()intgetPointReward()booleanisCompleted() 
 - 
 
- 
- 
Method Detail
- 
checkCompleted
public abstract boolean checkCompleted(Player p)
Checks if the given player has met the complete condition- Parameters:
 p- the player- Returns:
 - has completed
 
 
- 
getPlunderReward
public int getPlunderReward()
- Returns:
 - The plunder reward for this quest
 
 
- 
getPointReward
public int getPointReward()
- Returns:
 - The point reward for this quest
 
 
- 
isCompleted
public boolean isCompleted()
- Returns:
 - The completion status of the current quest
 
 
- 
getName
public java.lang.String getName()
- Returns:
 - The name of this quest
 
 
- 
getDescription
public java.lang.String getDescription()
- Returns:
 - The description of this quest
 
 
 - 
 
 -