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

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

public class ActiveSkillGaugeUpdater
extends GaugeUpdater

A GaugeUpdater which monitors a stat value.


Field Summary
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 Summary
ActiveSkillGaugeUpdater(ExperienceTable experienceTable, java.lang.String skill, Stats stats)
          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 java.lang.String skill
The skill name to monitor.


stats

@NotNull
private final Stats stats
The stats instance to watch.


statsListener

@NotNull
private final StatsListener statsListener
The StatsListener registered to be notified about stat changes.

Constructor Detail

ActiveSkillGaugeUpdater

public ActiveSkillGaugeUpdater(@NotNull
                               ExperienceTable experienceTable,
                               @NotNull
                               java.lang.String skill,
                               @NotNull
                               Stats stats)
Creates a new instance.

Parameters:
experienceTable - the experience table to query
skill - the skill name to monitor
stats - the instance to watch
Method Detail

dispose

public void dispose()
Frees allocated resources.

Specified by:
dispose in class GaugeUpdater