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.String
description
protected boolean
isCompleted
protected java.lang.String
name
protected int
plunderReward
protected int
pointReward
-
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 boolean
checkCompleted(Player p)
Checks if the given player has met the complete conditionjava.lang.String
getDescription()
java.lang.String
getName()
int
getPlunderReward()
int
getPointReward()
boolean
isCompleted()
-
-
-
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
-
-