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

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

public class SkillAddedSkinEvent
extends java.lang.Object
implements SkinEvent

A SkinEvent that executes a CommandList whenever a new skill has been gained.


Field Summary
private  CommandList commandList
          The CommandList to execute.
private  Skill skill
          The Skill to monitor.
private  SkillListener skillListener
          The SkillListener attached to skill.
 
Constructor Summary
SkillAddedSkinEvent(CommandList commandList, Skill skill)
          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.


skill

@NotNull
private final Skill skill
The Skill to monitor.


skillListener

@NotNull
private final SkillListener skillListener
The SkillListener attached to skill.

Constructor Detail

SkillAddedSkinEvent

public SkillAddedSkinEvent(@NotNull
                           CommandList commandList,
                           @NotNull
                           Skill skill)
Creates a new instance.

Parameters:
commandList - the command list to execute.
skill - the skill to monitor
Method Detail

dispose

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

Specified by:
dispose in interface SkinEvent