 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.gauge;
31 import org.jetbrains.annotations.NotNull;
58 public void resetBefore() {
63 public void resetAfter() {
68 public void statChanged(
final int statNo,
final int value) {
73 public void simpleWeaponSpeedChanged(
final boolean simpleWeaponSpeed) {
78 public void titleChanged(@NotNull
final String title) {
83 public void godNameChanged(@NotNull
final String godName) {
88 public void rangeChanged(@NotNull
final String range) {
93 public void activeSkillChanged(@NotNull
final String activeSkill) {
101 public void experienceChanged(
final long exp) {
106 public void experienceNextLevelChanged(
final long expNextLevel) {
119 public void gainedSkill() {
124 public void lostSkill() {
129 public void changedSkill() {
169 final StringBuilder tooltip =
new StringBuilder();
172 if (message !=
null) {
173 tooltip.append(
"<br><br>");
174 tooltip.append(message);
int getPercentsToNextLevel(final int level, final long experience)
Returns the experience fraction of the current level.
final ExperienceTable experienceTable
The experience table to query.
void dispose()
Frees allocated resources.
Updates the displayed values in a GUIGauge.
A GaugeUpdater which monitors the active skill.
void update()
Updates the stat values.
Interface for listeners on skill related changes.
Skill skill
The active skill or.
void removeCrossfireStatsListener(@NotNull final StatsListener statsListener)
Removes a StatsListener to be notified about stat changes.
One skill of the character.
void setValues(final int curValue, final int minValue, final int maxValue)
Updates the gauge values.
String getActiveSkill()
Returns the active skill name.
final SkillSet skillSet
The SkillSet for looking up skill names.
This is the representation of all the statistics of a player, like its speed or its experience.
final Stats stats
The stats instance to watch.
long getExperience()
Returns the skill experience.
void addSkillListener(@NotNull final SkillListener listener)
Adds a listener to be notified of changes.
void removeSkillListener(@NotNull final SkillListener listener)
Removes a listener to be notified of changes.
Stores experience <-> level mappings.
ActiveSkillGaugeUpdater2(@NotNull final ExperienceTable experienceTable, @NotNull final Stats stats, @NotNull final SkillSet skillSet)
Creates a new instance.
final SkillListener skillListener
The SkillListener registered to be notified about skill changes.
String getTooltipText()
Returns a description for this spell to be used in tooltips.
Maintain the set of skills as sent by the server.
Skill getNamedSkill(@NotNull final String skillName, final int face)
Returns the skill instance for a given skill name.
int getLevel()
Returns the skill level.
Interface for listeners interested in changes of Stats instances.
final StatsListener statsListener
The StatsListener registered to be notified about stat changes.