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 intreward
-
Constructor Summary
Constructors Constructor Description Quest()
-
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()intgetReward()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
-
getReward
public int getReward()
-
isCompleted
public boolean isCompleted()
-
getName
public java.lang.String getName()
-
getDescription
public java.lang.String getDescription()
-
-