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.Object
Base 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
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()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
name
protected java.lang.String name -
description
protected java.lang.String description -
reward
protected int reward -
isCompleted
protected boolean isCompleted
-
-
Constructor Details
-
Quest
public Quest()
-
-
Method Details
-
checkCompleted
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()
-