com.realtime.crossfire.jxclient.main
Class OutputCountTracker

java.lang.Object
  extended by com.realtime.crossfire.jxclient.main.OutputCountTracker

public class OutputCountTracker
extends java.lang.Object

Tracks received Crossfire messages and resets the "output-count" setting whenever a player logs in.


Field Summary
private  CommandQueue commandQueue
          The CommandQueue for sending commands.
private  CrossfireUpdateItemListener crossfireUpdateItemListener
          The CrossfireUpdateItemListener to receive item updates.
private  GuiStateListener guiStateListener
          The GuiStateListener for detecting established or dropped connections.
private  CrossfireServerConnection server
          The CrossfireServerConnection to track.
 
Constructor Summary
OutputCountTracker(GuiStateManager guiStateManager, CrossfireServerConnection server, CommandQueue commandQueue)
          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

commandQueue

@NotNull
private final CommandQueue commandQueue
The CommandQueue for sending commands.


crossfireUpdateItemListener

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


guiStateListener

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


server

@NotNull
private final CrossfireServerConnection server
The CrossfireServerConnection to track.

Constructor Detail

OutputCountTracker

public OutputCountTracker(@NotNull
                          GuiStateManager guiStateManager,
                          @NotNull
                          CrossfireServerConnection server,
                          @NotNull
                          CommandQueue commandQueue)
Creates a new instance.

Parameters:
guiStateManager - the gui state manager to track
server - the crossfire server connection to track
commandQueue - the command queue for sending commands