public class SkillGaugeUpdater extends GaugeUpdater
GaugeUpdater
which monitors a skill.Modifier and Type | Field and Description |
---|---|
private Skill |
skill
The monitored skill.
|
private SkillListener |
skillListener
The
SkillListener registered to be notified about skill changes. |
Constructor and Description |
---|
SkillGaugeUpdater(ExperienceTable experienceTable,
Skill skill)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Frees allocated resources.
|
getExperienceToNextLevel, getPercentsToNextLevel, setGauge, setValues, setValues
@NotNull private final Skill skill
@NotNull private final SkillListener skillListener
SkillListener
registered to be notified about skill changes.public SkillGaugeUpdater(@NotNull ExperienceTable experienceTable, @NotNull Skill skill)
experienceTable
- the experience table to queryskill
- the skill to monitorpublic void dispose()
dispose
in class GaugeUpdater