com.realtime.crossfire.jxclient.items
Class ItemsManager

java.lang.Object
  extended by com.realtime.crossfire.jxclient.items.ItemsManager

public class ItemsManager
extends java.lang.Object

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 CfItems.
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

crossfireUpdateItemListener

@NotNull
private final CrossfireUpdateItemListener crossfireUpdateItemListener
The CrossfireUpdateItemListener to receive item updates.


facesManager

@NotNull
private final FacesManager facesManager
The FacesManager instance for looking up faces.


guiStateListener

@NotNull
private final GuiStateListener guiStateListener
The GuiStateListener for detecting established or dropped connections.


itemSet

@NotNull
private final ItemSet itemSet
The known CfItems.


skillSet

@NotNull
private final SkillSet skillSet
The SkillSet instance to update.


stats

@NotNull
private final Stats stats
The Stats instance to update.

Constructor Detail

ItemsManager

public ItemsManager(@NotNull
                    CrossfireServerConnection crossfireServerConnection,
                    @NotNull
                    FacesManager facesManager,
                    @NotNull
                    Stats stats,
                    @NotNull
                    SkillSet skillSet,
                    @NotNull
                    GuiStateManager guiStateManager,
                    @NotNull
                    ItemSet itemSet)
Creates a new instance.

Parameters:
crossfireServerConnection - the connection to monitor
facesManager - the faces manager for looking up faces
stats - the instance to update
skillSet - the skill set instance to update
guiStateManager - the gui state manager to watch
itemSet - the item set to use