 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.quests;
26 import org.jetbrains.annotations.NotNull;
137 boolean changed =
false;
139 if (this.end !=
end) {
144 if (this.step.compareTo(
step) != 0) {
160 final StringBuilder sb =
new StringBuilder(
"<b>");
164 sb.append(
" (finished");
166 sb.append(
", can be replayed");
172 return sb.toString();
180 listener.questChanged();
void fireChanged()
Notifies all listeners.
Quest(final int code, @NotNull final String title, final int face, final boolean replay, final int parent, final boolean end, @NotNull final String step)
Create a new quest.
final String title
Quest title.
final int face
Quest face.
int getCode()
Get the quest's code.
Interface for listeners interested in Quest related events.
void setStep(final boolean end, @NotNull final String step)
Update the quest's state.
void removeQuestListener(@NotNull final QuestListener listener)
Removes a QuestListener to be notified of changes.
final boolean replay
If true, the quest can be replayed.
String step
Description of the current step.
String getTooltipText()
Returns a description for this spell to be used in tooltips.
A list of event listeners.
final EventListenerList2< QuestListener > listeners
The QuestListeners to be notified of changes.
void addQuestListener(@NotNull final QuestListener listener)
Adds a QuestListener to be notified of changes.
String getTitle()
Get the quest's title.
final int code
Quest internal code.
boolean end
If true, the quest is completed.
Describes an in-game quest.
int getFace()
Get the quest's face.
final int parent
Quest internal code of this quest's parent, 0 if no parent.