public class ActiveSkillGaugeUpdater extends GaugeUpdater
GaugeUpdater
which monitors a stat value.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
skill
The skill name to monitor.
|
private Stats |
stats
The stats instance to watch.
|
private StatsListener |
statsListener
The
StatsListener registered to be notified about stat changes. |
Constructor and Description |
---|
ActiveSkillGaugeUpdater(ExperienceTable experienceTable,
java.lang.String skill,
Stats stats)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Frees allocated resources.
|
getExperienceToNextLevel, getPercentsToNextLevel, setGauge, setValues, setValues
@NotNull private final java.lang.String skill
@NotNull private final Stats stats
@NotNull private final StatsListener statsListener
StatsListener
registered to be notified about stat changes.public ActiveSkillGaugeUpdater(@NotNull ExperienceTable experienceTable, @NotNull java.lang.String skill, @NotNull Stats stats)
experienceTable
- the experience table to queryskill
- the skill name to monitorstats
- the instance to watchpublic void dispose()
dispose
in class GaugeUpdater