 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.stats;
25 import javax.swing.Timer;
26 import org.jetbrains.annotations.NotNull;
50 @SuppressWarnings(
"FieldCanBeLocal")
54 public void resetBefore() {
58 public void resetAfter() {
63 public void statChanged(
final int statNo,
final int value) {
70 public void simpleWeaponSpeedChanged(
final boolean simpleWeaponSpeed) {
74 public void titleChanged(@NotNull
final String title) {
78 public void godNameChanged(@NotNull
final String godName) {
82 public void rangeChanged(@NotNull
final String range) {
86 public void activeSkillChanged(@NotNull
final String activeSkill) {
90 public void experienceChanged(
final long exp) {
94 public void experienceNextLevelChanged(
final long expNextLevel) {
111 timer.setRepeats(
false);
static final int TIMEOUT_DE_ASSERT
Timeout after that the "starving" state is set or reset.
void update()
Updates the current starving state from the current food value.
static final int CS_STAT_FOOD
The Food stat.
final StatsListener statsListener
The StatsListener registered to be notified about stat changes.
final Timer timer
The Timer for turning off the poison symbol.
static final int C_STAT_STARVING
The "is starving" indicator.
static final int CS_STAT_HP
The Hit Points stat.
void addCrossfireStatsListener(@NotNull final StatsListener statsListener)
Adds a StatsListener to be notified about stat changes.
Helper class to generate Stats#C_STAT_STARVING value from the Stats#CS_STAT_FOOD value.
This is the representation of all the statistics of a player, like its speed or its experience.
int getStat(final int statNo)
Returns the numerical value of the given statistic.
StarvingWatcher(@NotNull final Stats stats)
Creates a new instance.
Interface for listeners interested in changes of Stats instances.
void setStat(final int statNo, final int value)
Sets the given statistic numerical value.
final Stats stats
The stats instance to notify.