com.realtime.crossfire.jxclient.gui.gauge
Class SkillGaugeUpdater

java.lang.Object
  extended by com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater
      extended by com.realtime.crossfire.jxclient.gui.gauge.SkillGaugeUpdater

public class SkillGaugeUpdater
extends GaugeUpdater

A GaugeUpdater which monitors a skill.


Field Summary
private  Skill skill
          The monitored skill.
private  SkillListener skillListener
          The SkillListener registered to be notified about skill changes.
 
Constructor Summary
SkillGaugeUpdater(ExperienceTable experienceTable, Skill skill)
          Creates a new instance.
 
Method Summary
 void dispose()
          Frees allocated resources.
 
Methods inherited from class com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater
getExperienceToNextLevel, getPercentsToNextLevel, setGauge, setValues, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

skill

@NotNull
private final Skill skill
The monitored skill.


skillListener

@NotNull
private final SkillListener skillListener
The SkillListener registered to be notified about skill changes.

Constructor Detail

SkillGaugeUpdater

public SkillGaugeUpdater(@NotNull
                         ExperienceTable experienceTable,
                         @NotNull
                         Skill skill)
Creates a new instance.

Parameters:
experienceTable - the experience table to query
skill - the skill to monitor
Method Detail

dispose

public void dispose()
Frees allocated resources.

Specified by:
dispose in class GaugeUpdater