22 package com.realtime.crossfire.jxclient.items;
29 import org.jetbrains.annotations.NotNull;
30 import org.jetbrains.annotations.Nullable;
61 public void spellAdded(
final int index) {
66 public void spellRemoved(
final int index) {
72 if (spellsManager.displaysFace(face.getFaceNum())) {
94 return new CfItem(0, 0, 0, 0, facesManager.
getFace(0),
"All skills",
"All skills", 0, 0, 0, 0);
97 final int faceNumber = skill.
getFace();
98 final Face face = facesManager.
getFace(faceNumber > 0 ? faceNumber : 0);
99 return new CfItem(0, 0, 0, 0, face, skill.
toString(), skill.
toString(), 0, 0, 0, 0);
A list to display spell skills.
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()
Returns the skill's face.
Interface for listeners interested in SpellsManager events.
Manages image information ("faces") needed to display the map view, items, and spell icons...
Manages all known spells.
One skill of the character.
final SpellsManager spellsManager
The spells to display.
void addModifiedRange(final int firstIndex, final int lastIndex)
Marks a range of slots as modified.
int getSpellSkills()
Returns the number of spell skills.
SpellSkillView(@NotNull final SpellsManager spellsManager, @NotNull final FacesManager facesManager)
Creates a new instance.
Face getFace(int faceNum)
Returns the Face instance for a given face ID.
Abstract base class for ItemView implementing classes.
Skill getSpellSkill(final int index)
Returns the specified spell skill.
The representation of a Crossfire Item, client-side.
void addFacesManagerListener(@NotNull FacesManagerListener facesManagerListener)
Adds a FacesManagerListener to be notified about updated faces.
int getSize()
Returns the number of items.the number of items
final FacesManager facesManager
The FacesManager for retrieving face information.
Maintains a mapping of face numbers to face data.