java.lang.Object com.realtime.crossfire.jxclient.items.ItemsManager
public class ItemsManager
Manages items known to the character. This includes items on the floor, in the character's inventory, the character object itself, and items within containers known to the character.
Field Summary | |
---|---|
private CrossfireUpdateItemListener |
crossfireUpdateItemListener
The CrossfireUpdateItemListener to receive item updates. |
private FacesManager |
facesManager
The FacesManager instance for looking up faces. |
private GuiStateListener |
guiStateListener
The GuiStateListener for detecting established or dropped
connections. |
private ItemSet |
itemSet
The known CfItem s. |
private SkillSet |
skillSet
The SkillSet instance to update. |
private Stats |
stats
The Stats instance to update. |
Constructor Summary | |
---|---|
ItemsManager(CrossfireServerConnection crossfireServerConnection,
FacesManager facesManager,
Stats stats,
SkillSet skillSet,
GuiStateManager guiStateManager,
ItemSet itemSet)
Creates a new instance. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@NotNull private final CrossfireUpdateItemListener crossfireUpdateItemListener
CrossfireUpdateItemListener
to receive item updates.
@NotNull private final FacesManager facesManager
FacesManager
instance for looking up faces.
@NotNull private final GuiStateListener guiStateListener
GuiStateListener
for detecting established or dropped
connections.
@NotNull private final ItemSet itemSet
CfItem
s.
@NotNull private final SkillSet skillSet
SkillSet
instance to update.
@NotNull private final Stats stats
Stats
instance to update.
Constructor Detail |
---|
public ItemsManager(@NotNull CrossfireServerConnection crossfireServerConnection, @NotNull FacesManager facesManager, @NotNull Stats stats, @NotNull SkillSet skillSet, @NotNull GuiStateManager guiStateManager, @NotNull ItemSet itemSet)
crossfireServerConnection
- the connection to monitorfacesManager
- the faces manager for looking up facesstats
- the instance to updateskillSet
- the skill set instance to updateguiStateManager
- the gui state manager to watchitemSet
- the item set to use