21 package com.realtime.crossfire.jxclient.items;
27 import org.jetbrains.annotations.NotNull;
28 import org.jetbrains.annotations.Nullable;
56 questsManager.addCrossfireQuestChangedListener(index ->
addModifiedRange(index, questsManager.getQuests()));
58 if (questsManager.displaysFace(face.getFaceNum())) {
83 return new CfItem(0, quest.
getCode(), 0, 0, face, quest.
getTitle(), quest.
getTitle(), 0, 0, 0, 0);
QuestsView(@NotNull final QuestsManager questsManager, @NotNull final FacesManager facesManager)
Creates a new instance.
Provides a view of all quests a character is doing.
int getCode()
Get the quest's code.
Describes an in-game quest.
Manages image information ("faces") needed to display the map view, items, and spell icons...
int getQuests()
Returns the number of current quests.
int getSize()
Returns the number of items.the number of items
Manages all quests for a player.
void addModifiedRange(final int firstIndex, final int lastIndex)
Marks a range of slots as modified.
final QuestsManager questsManager
The quests to display.
CfItem getItem(final int index)
Returns the CfItem in a given slot.the slot index the item ornull if the slot is empty ...
int getFace()
Get the quest's face.
final FacesManager facesManager
The FacesManager for retrieving face information.
String getTitle()
Get the quest's title.
Face getFace(int faceNum)
Returns the Face instance for a given face ID.
Abstract base class for ItemView implementing classes.
The representation of a Crossfire Item, client-side.
void addFacesManagerListener(@NotNull FacesManagerListener facesManagerListener)
Adds a FacesManagerListener to be notified about updated faces.
Quest getQuest(final int index)
Returns a Quest instance by index.
Maintains a mapping of face numbers to face data.