Crossfire JXClient, Trunk
com.realtime.crossfire.jxclient.gui.gauge.ActiveSkillGaugeUpdater2 Class Reference

A GaugeUpdater which monitors the active skill. More...

+ Inheritance diagram for com.realtime.crossfire.jxclient.gui.gauge.ActiveSkillGaugeUpdater2:
+ Collaboration diagram for com.realtime.crossfire.jxclient.gui.gauge.ActiveSkillGaugeUpdater2:

Public Member Functions

 ActiveSkillGaugeUpdater2 (@NotNull final ExperienceTable experienceTable, @NotNull final Stats stats, @NotNull final SkillSet skillSet)
 Creates a new instance. More...
 
void dispose ()
 Frees allocated resources. More...
 
- Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater
void setGauge (@NotNull final GUIGaugeListener gauge)
 Sets the gauge to update. More...
 

Private Member Functions

void update ()
 Updates the stat values. More...
 

Private Attributes

Skill skill
 The active skill or. More...
 
final SkillListener skillListener
 The SkillListener registered to be notified about skill changes. More...
 
final SkillSet skillSet
 The SkillSet for looking up skill names. More...
 
final Stats stats
 The stats instance to watch. More...
 
final StatsListener statsListener
 The StatsListener registered to be notified about stat changes. More...
 

Additional Inherited Members

- Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.gauge.GaugeUpdater
 GaugeUpdater (@NotNull final ExperienceTable experienceTable, final boolean hideIfEmpty)
 Creates a new instance. More...
 
long getExperienceToNextLevel (final int level, final long experience)
 Returns the experience needed to reach next level. More...
 
int getPercentsToNextLevel (final int level, final long experience)
 Returns the experience fraction of the current level. More...
 
void setValues (final int curValue, final int minValue, final int maxValue)
 Updates the gauge values. More...
 
void setValues (final int curValue, final int minValue, final int maxValue, @NotNull final String labelText, @NotNull final String tooltipText)
 Updates the gauge values. More...
 

Detailed Description

A GaugeUpdater which monitors the active skill.

Author
Andreas Kirschbaum

Definition at line 37 of file ActiveSkillGaugeUpdater2.java.

Constructor & Destructor Documentation

◆ ActiveSkillGaugeUpdater2()

Member Function Documentation

◆ dispose()

◆ update()

Member Data Documentation

◆ skill

Skill com.realtime.crossfire.jxclient.gui.gauge.ActiveSkillGaugeUpdater2.skill
private

◆ skillListener

final SkillListener com.realtime.crossfire.jxclient.gui.gauge.ActiveSkillGaugeUpdater2.skillListener
private
Initial value:
= new SkillListener() {
@Override
public void gainedSkill() {
update();
}
@Override
public void lostSkill() {
update();
}
@Override
public void changedSkill() {
update();
}
}

The SkillListener registered to be notified about skill changes.

Definition at line 116 of file ActiveSkillGaugeUpdater2.java.

Referenced by com.realtime.crossfire.jxclient.gui.gauge.ActiveSkillGaugeUpdater2.ActiveSkillGaugeUpdater2(), and com.realtime.crossfire.jxclient.gui.gauge.ActiveSkillGaugeUpdater2.dispose().

◆ skillSet

final SkillSet com.realtime.crossfire.jxclient.gui.gauge.ActiveSkillGaugeUpdater2.skillSet
private

◆ stats

final Stats com.realtime.crossfire.jxclient.gui.gauge.ActiveSkillGaugeUpdater2.stats
private

◆ statsListener

final StatsListener com.realtime.crossfire.jxclient.gui.gauge.ActiveSkillGaugeUpdater2.statsListener
private

The documentation for this class was generated from the following file:
com.realtime.crossfire.jxclient.gui.gauge.ActiveSkillGaugeUpdater2.update
void update()
Updates the stat values.
Definition: ActiveSkillGaugeUpdater2.java:167