|
Crossfire JXClient, Trunk
R20561
|
Manages all quests for a player. More...
Collaboration diagram for com.realtime.crossfire.jxclient.quests.QuestsManager:Public Member Functions | |
| void | addCrossfireQuestChangedListener (@NotNull final QuestsManagerListener listener) |
| Adds a QuestsManagerListener to notify about changes. More... | |
| void | addQuest (final int code, @NotNull final String title, final int face, final boolean replay, final int parent, final boolean end, @NotNull final String description) |
| Adds a new quest. More... | |
| boolean | displaysFace (final int faceNum) |
| Returns whether any quest has the given face. More... | |
| Quest | getQuest (final int index) |
| Returns a Quest instance by index. More... | |
| int | getQuests () |
| Returns the number of current quests. More... | |
| QuestsManager (@NotNull final GuiStateManager guiStateManager) | |
| Creates a new instance. More... | |
| void | removeCrossfireQuestChangedListener (@NotNull final QuestsManagerListener listener) |
| Removes a QuestsManagerListener to notify about changes. More... | |
| void | selectCharacter () |
| A character name was sent to the server. More... | |
| void | updateQuest (final int code, final boolean end, @NotNull final String step) |
| Updates quest information. More... | |
Private Attributes | |
| final GuiStateListener | guiStateListener |
| The GuiStateListener for detecting established or dropped connections. More... | |
| final EventListenerList2< QuestsManagerListener > | listeners = new EventListenerList2<>() |
| The QuestsManagerListeners to notify about changes. More... | |
| final Comparator< Quest > | questComparator = new QuestComparator() |
| A Comparator to compare Quest instances by title and code. More... | |
| final List< Quest > | quests = new CopyOnWriteArrayList<>() |
| All quests. More... | |
Manages all quests for a player.
Definition at line 38 of file QuestsManager.java.
| com.realtime.crossfire.jxclient.quests.QuestsManager.QuestsManager | ( | @NotNull final GuiStateManager | guiStateManager | ) |
Creates a new instance.
| guiStateManager | the gui state manager to watch |
Definition at line 109 of file QuestsManager.java.
References com.realtime.crossfire.jxclient.quests.QuestsManager.guiStateListener.
| void com.realtime.crossfire.jxclient.quests.QuestsManager.addCrossfireQuestChangedListener | ( | @NotNull final QuestsManagerListener | listener | ) |
Adds a QuestsManagerListener to notify about changes.
| listener | the listener to add |
Definition at line 117 of file QuestsManager.java.
References com.realtime.crossfire.jxclient.util.EventListenerList2< T extends EventListener >.add().
Here is the call graph for this function:| void com.realtime.crossfire.jxclient.quests.QuestsManager.addQuest | ( | final int | code, |
| @NotNull final String | title, | ||
| final int | face, | ||
| final boolean | replay, | ||
| final int | parent, | ||
| final boolean | end, | ||
| @NotNull final String | description | ||
| ) |
Adds a new quest.
| code | the quest's code |
| title | the quest's title |
| face | the quest's face |
| replay | whether the quest can be replayed or not |
| parent | quest internal code of this quest's parent, 0 if no parent. |
| end | whether the quest is ended or not |
| description | the quest's current step |
Definition at line 140 of file QuestsManager.java.
References com.realtime.crossfire.jxclient.quests.Quest.setStep().
Referenced by com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection.processAddQuest().
Here is the call graph for this function:
Here is the caller graph for this function:| boolean com.realtime.crossfire.jxclient.quests.QuestsManager.displaysFace | ( | final int | faceNum | ) |
Returns whether any quest has the given face.
| faceNum | the face |
Definition at line 195 of file QuestsManager.java.
| Quest com.realtime.crossfire.jxclient.quests.QuestsManager.getQuest | ( | final int | index | ) |
Returns a Quest instance by index.
| index | the index |
Definition at line 186 of file QuestsManager.java.
Referenced by com.realtime.crossfire.jxclient.items.QuestsView.getItem(), com.realtime.crossfire.jxclient.gui.item.GUIItemQuest.setQuest(), and com.realtime.crossfire.jxclient.gui.list.GUIQuestList.updateTooltip().
Here is the caller graph for this function:| int com.realtime.crossfire.jxclient.quests.QuestsManager.getQuests | ( | ) |
Returns the number of current quests.
Definition at line 176 of file QuestsManager.java.
Referenced by com.realtime.crossfire.jxclient.gui.item.GUIItemQuest.canScroll(), and com.realtime.crossfire.jxclient.items.QuestsView.getSize().
Here is the caller graph for this function:| void com.realtime.crossfire.jxclient.quests.QuestsManager.removeCrossfireQuestChangedListener | ( | @NotNull final QuestsManagerListener | listener | ) |
Removes a QuestsManagerListener to notify about changes.
| listener | the listener to remove |
Definition at line 125 of file QuestsManager.java.
References com.realtime.crossfire.jxclient.util.EventListenerList2< T extends EventListener >.remove().
Referenced by com.realtime.crossfire.jxclient.gui.item.GUIItemQuest.dispose().
Here is the call graph for this function:
Here is the caller graph for this function:| void com.realtime.crossfire.jxclient.quests.QuestsManager.selectCharacter | ( | ) |
A character name was sent to the server.
Definition at line 208 of file QuestsManager.java.
Referenced by com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection.fireSelectCharacter().
Here is the caller graph for this function:| void com.realtime.crossfire.jxclient.quests.QuestsManager.updateQuest | ( | final int | code, |
| final boolean | end, | ||
| @NotNull final String | step | ||
| ) |
Updates quest information.
| code | the quest's code |
| end | whether the quest is ended or not |
| step | the quest's current step |
Definition at line 163 of file QuestsManager.java.
Referenced by com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection.processUpdQuest().
Here is the caller graph for this function:
|
private |
The GuiStateListener for detecting established or dropped connections.
Definition at line 66 of file QuestsManager.java.
Referenced by com.realtime.crossfire.jxclient.quests.QuestsManager.QuestsManager().
|
private |
The QuestsManagerListeners to notify about changes.
Definition at line 51 of file QuestsManager.java.
|
private |
A Comparator to compare Quest instances by title and code.
Definition at line 58 of file QuestsManager.java.
|
private |
All quests.
Definition at line 44 of file QuestsManager.java.