 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.gauge;
28 import org.jetbrains.annotations.NotNull;
49 public void gainedSkill() {
54 public void lostSkill() {
59 public void changedSkill() {
61 final StringBuilder tooltip =
new StringBuilder();
64 if (message !=
null) {
65 tooltip.append(
"<br><br>");
66 tooltip.append(message);
int getPercentsToNextLevel(final int level, final long experience)
Returns the experience fraction of the current level.
final ExperienceTable experienceTable
The experience table to query.
Updates the displayed values in a GUIGauge.
final SkillListener skillListener
The SkillListener registered to be notified about skill changes.
SkillGaugeUpdater(@NotNull final ExperienceTable experienceTable, @NotNull final Skill skill)
Creates a new instance.
Interface for listeners on skill related changes.
A GaugeUpdater which monitors a skill.
One skill of the character.
void setValues(final int curValue, final int minValue, final int maxValue)
Updates the gauge values.
void dispose()
Frees allocated resources.
long getExperience()
Returns the skill experience.
final Skill skill
The monitored skill.
void addSkillListener(@NotNull final SkillListener listener)
Adds a listener to be notified of changes.
void removeSkillListener(@NotNull final SkillListener listener)
Removes a listener to be notified of changes.
Stores experience <-> level mappings.
String getTooltipText()
Returns a description for this spell to be used in tooltips.
int getLevel()
Returns the skill level.