com.realtime.crossfire.jxclient.main
Class PlayerNameTracker

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

public class PlayerNameTracker
extends java.lang.Object

Tracks a GuiStateManager and updates a JXCConnection's character name.


Field Summary
private  JXCConnection connection
          The JXCConnection to track.
private  GuiStateListener guiStateListener
          The GuiStateListener for detecting established or dropped connections.
private  ItemSet itemSet
          The ItemSet to track.
private  ItemSetListener itemSetListener
          The listener to detect a changed player name.
 
Constructor Summary
PlayerNameTracker(GuiStateManager guiStateManager, JXCConnection connection, 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

connection

@NotNull
private final JXCConnection connection
The JXCConnection to track.


guiStateListener

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


itemSet

@NotNull
private final ItemSet itemSet
The ItemSet to track.


itemSetListener

@NotNull
private final ItemSetListener itemSetListener
The listener to detect a changed player name.

Constructor Detail

PlayerNameTracker

public PlayerNameTracker(@NotNull
                         GuiStateManager guiStateManager,
                         @NotNull
                         JXCConnection connection,
                         @NotNull
                         ItemSet itemSet)
Creates a new instance.

Parameters:
guiStateManager - the gui state manager to track
connection - the connection to track
itemSet - the item set to track