com.realtime.crossfire.jxclient.main
Class PickupTracker

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

public class PickupTracker
extends java.lang.Object

Updates the pickup state whenever a "player" command is received from a Crossfire server.


Field Summary
private  CrossfireUpdateItemListener crossfireUpdateItemListener
          The CrossfireUpdateItemListener to track "player" commands.
private  GuiStateListener guiStateListener
          The GuiStateListener for detecting established or dropped connections.
private  Pickup pickup
          The Pickup to update.
private  CrossfireServerConnection server
          The CrossfireServerConnection to track.
 
Constructor Summary
PickupTracker(GuiStateManager guiStateManager, CrossfireServerConnection server, Pickup pickup)
          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 track "player" commands.


guiStateListener

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


pickup

@NotNull
private final Pickup pickup
The Pickup to update.


server

@NotNull
private final CrossfireServerConnection server
The CrossfireServerConnection to track.

Constructor Detail

PickupTracker

public PickupTracker(@NotNull
                     GuiStateManager guiStateManager,
                     @NotNull
                     CrossfireServerConnection server,
                     @NotNull
                     Pickup pickup)
Creates a new instance.

Parameters:
guiStateManager - the gui state manager to track
server - the crossfire server connection track
pickup - the pickup to update