com.realtime.crossfire.jxclient.skin.events
Class CrossfireMagicmapSkinEvent

java.lang.Object
  extended by com.realtime.crossfire.jxclient.skin.events.CrossfireMagicmapSkinEvent
All Implemented Interfaces:
SkinEvent

public class CrossfireMagicmapSkinEvent
extends java.lang.Object
implements SkinEvent

A SkinEvent that executes a CommandList whenever a magicmap protocol command is received.


Field Summary
private  CommandList commandList
          The CommandList to execute.
private  CrossfireMagicmapListener crossfireMagicmapListener
          The CrossfireMagicmapListener attached to server.
private  CrossfireServerConnection server
          The CrossfireServerConnection for tracking magicmap commands.
 
Constructor Summary
CrossfireMagicmapSkinEvent(CommandList commandList, CrossfireServerConnection server)
          Creates a new instance.
 
Method Summary
 void dispose()
          Will be called when the skin is disposed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commandList

@NotNull
private final CommandList commandList
The CommandList to execute.


crossfireMagicmapListener

@NotNull
private final CrossfireMagicmapListener crossfireMagicmapListener
The CrossfireMagicmapListener attached to server.


server

@NotNull
private final CrossfireServerConnection server
The CrossfireServerConnection for tracking magicmap commands.

Constructor Detail

CrossfireMagicmapSkinEvent

public CrossfireMagicmapSkinEvent(@NotNull
                                  CommandList commandList,
                                  @NotNull
                                  CrossfireServerConnection server)
Creates a new instance.

Parameters:
commandList - the command list to execute
server - the connection to attach to
Method Detail

dispose

public void dispose()
Will be called when the skin is disposed. Should release resources.

Specified by:
dispose in interface SkinEvent