 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.gauge;
32 import org.jetbrains.annotations.NotNull;
33 import org.jetbrains.annotations.Nullable;
76 public void resetBefore() {
81 public void resetAfter() {
86 public void statChanged(
final int statNo,
final int value) {
147 public void simpleWeaponSpeedChanged(
final boolean simpleWeaponSpeed) {
152 public void titleChanged(@NotNull
final String title) {
157 public void godNameChanged(@NotNull
final String godName) {
162 public void rangeChanged(@NotNull
final String range) {
167 public void activeSkillChanged(@NotNull
final String activeSkill) {
172 public void experienceChanged(
final long exp) {
179 public void experienceNextLevelChanged(
final long expNextLevel) {
194 public void playerChanged(@Nullable
final CfItem player) {
199 public void openContainerChanged(
final int tag) {
long getExperience()
Returns the amount of global experience.
int getPercentsToNextLevel(final int level, final long experience)
Returns the experience fraction of the current level.
Model class maintaining the CfItems known to the player.
final ExperienceTable experienceTable
The experience table to query.
static final int CS_STAT_GOLEM_HP
The golem's hitpoints, 0 if no golem.
long getExperienceToNextLevel(final int level, final long experience)
Returns the experience needed to reach next level.
Updates the displayed values in a GUIGauge.
static final int CS_STAT_FOOD
The Food stat.
final Stats stats
The Stats instance to watch.
void updateExperienceNextLevel()
Updates information for Stats#C_STAT_EXP_NEXT_LEVEL.
final ItemSetListener itemSetListener
The listener to detect a changed player name.
A GaugeUpdater which monitors a stat value.
static final int CS_STAT_RESIST_START
Beginning index of the resistances.
static final int CS_STAT_HP
The Hit Points stat.
void removeCrossfireStatsListener(@NotNull final StatsListener statsListener)
Removes a StatsListener to be notified about stat changes.
static final int CS_STAT_MAXHP
The Maximum Hit Points stat.
final int stat
The stat value to monitor.
static final int C_STAT_LOWFOOD
The Low Food indicator.
The representation of a Crossfire Item, client-side.
static final int CS_STAT_SP
The Spell Points stat.
static final int CS_STAT_LEVEL
The Global Level stat.
void setValues(final int curValue, final int minValue, final int maxValue)
Updates the gauge values.
static final int LOWFOOD_LIMIT
The LOWFOOD indicator is turned on if the FOOD value falls below this value.
StatGaugeUpdater(@NotNull final ExperienceTable experienceTable, final int stat, @NotNull final Stats stats, @NotNull final ItemSet itemSet)
Creates a new instance.
static final int C_STAT_EXP_NEXT_LEVEL
The global experience needed to reach next level stat.
static final int CS_STAT_GOLEM_MAXHP
The golem's maximum hitpoints, 0 if no golem.
boolean active
Whether the low food event should be generated.
This is the representation of all the statistics of a player, like its speed or its experience.
static final int CS_STAT_MAXGRACE
The Maximum Grace stat.
void addItemSetListener(@NotNull final ItemSetListener listener)
Adds an ItemSetListener to be notified about changes.
static final int CS_STAT_RESIST_END
End index of the resistances.
void dispose()
Frees allocated resources.
static final int C_STAT_POISONED
The "is poisoned" indicator.
Stores experience <-> level mappings.
static final int CS_STAT_GRACE
The Grace stat.
final ItemSet itemSet
The ItemSet instance to watch.
static final int CS_STAT_MAXSP
The Maximum Spell Points stat.
int getStat(final int statNo)
Returns the numerical value of the given statistic.
final StatsListener statsListener
The StatsListener registered to be notified about stat changes.
Interface for listeners interested in changes of Stats instances.
Interface for listeners in ItemSet related events.
void removeItemSetListener(@NotNull final ItemSetListener listener)
Removes an ItemSetListener to be notified about changes.