 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.items;
29 import java.util.ArrayList;
30 import java.util.List;
31 import org.jetbrains.annotations.NotNull;
32 import org.jetbrains.annotations.Nullable;
56 @SuppressWarnings(
"FieldAccessedSynchronizedAndUnsynchronized")
76 addModifiedRange(0, quests.size());
94 }
catch (
final IndexOutOfBoundsException ignored) {
106 quests.add(
new CfItem(0, quest.getCode(), 0, 0, face, quest.getTitle(), quest.getTitle(), 0, 0, 0, 0));
118 if (this.filter ==
filter) {
Abstract base class for ItemView implementing classes.
Maintains a mapping of face numbers to face data.
Manages all quests for a player.
QuestsFilter filter
The current quests filter.
void setFilter(@NotNull final QuestsFilter filter)
Sets the QuestsFilter.
List< Quest > getQuests()
Get the list of all quests.
Face getFace(int faceNum)
Returns the Face instance for a given face ID.
Manages image information ("faces") needed to display the map view, items, and spell icons.
int getSize()
Returns the number of items.
CfItem getItem(final int index)
Returns the CfItem in a given slot.
void addFacesManagerListener(@NotNull FacesManagerListener facesManagerListener)
Adds a FacesManagerListener to be notified about updated faces.
boolean displaysFace(final int faceNum)
Returns whether any quest has the given face.
The representation of a Crossfire Item, client-side.
final List< CfItem > quests
The quests to display.
final QuestsManager questsManager
The quests to display.
A filter option for the quests view.
Provides a view of all quests a character is doing.
Describes an in-game quest.
final FacesManager facesManager
The FacesManager for retrieving face information.
void addModifiedRange(final int firstIndex, final int lastIndex)
Marks a range of slots as modified.
void addCrossfireQuestChangedListener(@NotNull final QuestsManagerListener listener)
Adds a QuestsManagerListener to notify about changes.