java.lang.Object
com.realtime.crossfire.jxclient.skills.Skill

public class Skill extends Object
One skill of the character.
  • Constructor Details

    • Skill

      public Skill(@NotNull @NotNull String name)
      Creates a new instance.
      Parameters:
      name - the skill name
  • Method Details

    • set

      public void set(int level, long experience)
      Updates the skill attributes.
      Parameters:
      level - the new skill level
      experience - the new skill experience
    • getExperience

      public long getExperience()
      Returns the skill experience.
      Returns:
      the skill experience
    • getLevel

      public int getLevel()
      Returns the skill level.
      Returns:
      the skill level
    • getFace

      public int getFace()
      Returns the skill's face.
      Returns:
      face number, -1 if no face defined.
    • setFace

      public void setFace(int face)
      Defines the skill's face.
      Parameters:
      face - new face index
    • setMessage

      public void setMessage(@Nullable @Nullable String message)
      Defines the skill's message.
      Parameters:
      message - new message, may be null
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object
    • getTooltipText

      @Nullable public @Nullable String getTooltipText()
      Returns a description for this spell to be used in tooltips.
      Returns:
      the tooltip text or null if unknown
    • addSkillListener

      public void addSkillListener(@NotNull @NotNull SkillListener listener)
      Adds a listener to be notified of changes.
      Parameters:
      listener - the listener to add
    • removeSkillListener

      public void removeSkillListener(@NotNull @NotNull SkillListener listener)
      Removes a listener to be notified of changes.
      Parameters:
      listener - the listener to remove