public class WauzQuest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.String> |
completedDialog
The list of messages in the completion dialog.
|
private java.lang.String |
coordinates
The coordinates of the quest location as text.
|
private java.lang.String |
displayName
The name of the quest, shown in the questlog.
|
private int |
level
The level of the quest.
|
private static java.util.Map<java.lang.Integer,java.util.List<WauzQuest>> |
levelQuestsMap
A map with lists of quests, indexed by level.
|
private int |
phaseAmount
The amount of questphases.
|
private java.util.List<WauzQuestPhase> |
phases
The list of questphases.
|
private java.lang.String |
questGiver
The citizen who gives out the quest.
|
private static java.util.Map<java.lang.String,WauzQuest> |
questMap
A map of quests, indexed by name.
|
private java.lang.String |
questName
The canonical name of the quest.
|
private java.lang.String |
requiredClass
The required class to start the quest.
|
private java.lang.String |
requiredPrequest
The required prequest to start the quest.
|
private int |
rewardCoins
The coin reward of the quest.
|
private double |
rewardExp
The exp reward of the quest.
|
private WauzQuestLoot |
rewardLoot
The loot reward of a quest.
|
private int |
rewardRelationExp
The relation exp reward of the quest.
|
private java.lang.String |
type
The type of the quest as text.
|
Constructor and Description |
---|
WauzQuest(java.lang.String questName)
Constructs a quest, based on the quest file name in the /WauzCore/QuestData folder.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getCompletedDialog() |
java.lang.String |
getCoordinates() |
java.lang.String |
getDisplayName() |
int |
getLevel() |
private WauzQuestPhase |
getPhase(int phase) |
int |
getPhaseAmount() |
java.util.List<java.lang.String> |
getPhaseDialog(int phase) |
static WauzQuest |
getQuest(java.lang.String questName) |
static int |
getQuestCount() |
java.lang.String |
getQuestGiver() |
java.lang.String |
getQuestName() |
java.awt.geom.Point2D |
getQuestPoint() |
static java.util.List<WauzQuest> |
getQuestsForLevel(int level) |
java.lang.String |
getRequiredClass() |
java.lang.String |
getRequiredPrequest() |
int |
getRequirementAmount(int phase) |
int |
getRequirementNeededItemAmount(int phase,
int requirement) |
java.lang.String |
getRequirementNeededItemCoordinates(int phase,
int requirement) |
java.lang.String |
getRequirementNeededItemName(int phase,
int requirement) |
java.lang.String |
getRequirementType(int phase) |
int |
getRewardCoins() |
double |
getRewardExp() |
WauzQuestLoot |
getRewardLoot() |
int |
getRewardRelationExp() |
java.lang.String |
getType() |
java.lang.String |
getUncompletedMessage(int phase) |
static void |
init()
Initializes all quest configs and fills the internal quest maps.
|
private static java.util.Map<java.lang.Integer,java.util.List<WauzQuest>> levelQuestsMap
private static java.util.Map<java.lang.String,WauzQuest> questMap
private java.lang.String questName
private java.lang.String displayName
private java.lang.String questGiver
private java.lang.String coordinates
private java.lang.String type
private int level
private int phaseAmount
private java.lang.String requiredClass
private java.lang.String requiredPrequest
private double rewardExp
private int rewardRelationExp
private int rewardCoins
private WauzQuestLoot rewardLoot
private java.util.List<java.lang.String> completedDialog
private java.util.List<WauzQuestPhase> phases
public WauzQuest(java.lang.String questName)
questName
- The canonical name of the quest.public static void init()
QuestConfigurator.getQuestNameList()
public static java.util.List<WauzQuest> getQuestsForLevel(int level)
level
- A quest level.public static WauzQuest getQuest(java.lang.String questName)
questName
- A quest name.public static int getQuestCount()
public java.lang.String getQuestName()
public java.lang.String getDisplayName()
public java.lang.String getQuestGiver()
public java.lang.String getCoordinates()
public java.awt.geom.Point2D getQuestPoint()
public java.lang.String getType()
public int getLevel()
public int getPhaseAmount()
public java.lang.String getRequiredClass()
public java.lang.String getRequiredPrequest()
public java.util.List<java.lang.String> getCompletedDialog()
public double getRewardExp()
public int getRewardRelationExp()
public int getRewardCoins()
public WauzQuestLoot getRewardLoot()
private WauzQuestPhase getPhase(int phase)
phase
- The number of the phase.public java.util.List<java.lang.String> getPhaseDialog(int phase)
phase
- The number of the phase.public java.lang.String getUncompletedMessage(int phase)
phase
- The number of the phase.public java.lang.String getRequirementType(int phase)
phase
- The number of the phase.public int getRequirementAmount(int phase)
phase
- The number of the phase.public int getRequirementNeededItemAmount(int phase, int requirement)
phase
- The number of the phase.requirement
- The number of the requirement.public java.lang.String getRequirementNeededItemName(int phase, int requirement)
phase
- The number of the phase.requirement
- The number of the requirement.public java.lang.String getRequirementNeededItemCoordinates(int phase, int requirement)
phase
- The number of the phase.requirement
- The number of the requirement.