 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.items;
30 import org.jetbrains.annotations.NotNull;
31 import org.jetbrains.annotations.Nullable;
62 public void spellAdded(
final int index) {
67 public void spellRemoved(
final int index) {
92 return new CfItem(0, spell.
getTag(), 0, 0, face, spell.
getName(), spell.
getName(), 0, 0, 0, 0);
Abstract base class for ItemView implementing classes.
Maintains a mapping of face numbers to face data.
final SpellsManager spellsManager
The spells to display.
CfItem getItem(final int index)
Returns the CfItem in a given slot.
int getFaceNum()
Returns the face number.
Provides a view of all spells a character knows.
Face getFace(int faceNum)
Returns the Face instance for a given face ID.
final FacesManager facesManager
The FacesManager for retrieving face information.
Manages image information ("faces") needed to display the map view, items, and spell icons.
void addCrossfireSpellChangedListener(@NotNull final SpellsManagerListener listener)
Adds a SpellsManagerListener to notify about changes.
Manages all known spells.
void addFacesManagerListener(@NotNull FacesManagerListener facesManagerListener)
Adds a FacesManagerListener to be notified about updated faces.
int getFilteredSpellsCount()
Returns the number of currently shown spells.
Describes a Crossfire spell.
The representation of a Crossfire Item, client-side.
int getTag()
Returns the tag ID.
Interface for listeners interested in SpellsManager events.
boolean displaysFace(final int faceNum)
Returns whether any spell has the given face.
String getName()
Returns the spell name.
void addModifiedRange(final int firstIndex, final int lastIndex)
Marks a range of slots as modified.
Spell getFilteredSpell(final int index)
Returns a Spell instance by index.
int getSize()
Returns the number of items.
SpellsView(@NotNull final SpellsManager spellsManager, @NotNull final FacesManager facesManager)
Creates a new instance.