com.realtime.crossfire.jxclient.server.crossfire
Interface CrossfireStatsListener


public interface CrossfireStatsListener

Interface for listeners interested in stats messages received from the Crossfire server.


Field Summary
static int C_STAT_EXP_NEXT_LEVEL
          The global experience needed to reach next level stat.
static int C_STAT_LOWFOOD
          The Low Food indicator.
static int C_STAT_POISONED
          The "is poisoned" indicator.
static int C_STAT_WEIGHT
          The character's weight.
static int CS_NUM_SKILLS
          CS_NUM_SKILLS does not match how many skills there really are - instead, it is used as a range of values so that the client can have some idea how many skill categories there may be.
static int CS_STAT_AC
          The Armor Class stat.
static int CS_STAT_APPLIED_CHA
          The charisma primary stat changes due to gear or skills.
static int CS_STAT_APPLIED_CON
          The constitution primary stat changes due to gear or skills.
static int CS_STAT_APPLIED_DEX
          The dexterity primary stat changes due to gear or skills.
static int CS_STAT_APPLIED_INT
          The integer primary stat changes due to gear or skills.
static int CS_STAT_APPLIED_POW
          The power primary stat changes due to gear or skills.
static int CS_STAT_APPLIED_STR
          The strength primary stat changes due to gear or skills.
static int CS_STAT_APPLIED_WIS
          The wisdom primary stat changes due to gear or skills.
static int CS_STAT_ARMOUR
          The Armour stat.
static int CS_STAT_BASE_CHA
          The charisma primary stat without boosts or depletions.
static int CS_STAT_BASE_CON
          The constitution primary stat without boosts or depletions.
static int CS_STAT_BASE_DEX
          The dexterity primary stat without boosts or depletions.
static int CS_STAT_BASE_INT
          The integer primary stat without boosts or depletions.
static int CS_STAT_BASE_POW
          The power primary stat without boosts or depletions.
static int CS_STAT_BASE_STR
          The strength primary stat without boosts or depletions.
static int CS_STAT_BASE_WIS
          The wisdom primary stat without boosts or depletions.
static int CS_STAT_CHA
          The Charisma Primary stat.
static int CS_STAT_CON
          The Constitution Primary stat.
static int CS_STAT_DAM
          The Damage stat.
static int CS_STAT_DEX
          The Dexterity Primary stat.
static int CS_STAT_EXP
          The Global Experience (32bit encoding) stat.
static int CS_STAT_EXP64
          The Global Experience (64bit encoding) stat.
static int CS_STAT_FLAGS
          The various flags used in stats.
static int CS_STAT_FOOD
          The Food stat.
static int CS_STAT_GRACE
          The Grace stat.
static int CS_STAT_HP
          The Hit Points stat.
static int CS_STAT_INT
          The Intelligence Primary stat.
static int CS_STAT_LEVEL
          The Global Level stat.
static int CS_STAT_MAXGRACE
          The Maximum Grace stat.
static int CS_STAT_MAXHP
          The Maximum Hit Points stat.
static int CS_STAT_MAXSP
          The Maximum Spell Points stat.
static int CS_STAT_POW
          The Power Primary stat.
static int CS_STAT_RACE_CHA
          The race's maximum charisma primary stat.
static int CS_STAT_RACE_CON
          The race's maximum constitution primary stat.
static int CS_STAT_RACE_DEX
          The race's maximum dexterity primary stat.
static int CS_STAT_RACE_INT
          The race's maximum intelligence primary stat.
static int CS_STAT_RACE_POW
          The race's maximum power primary stat.
static int CS_STAT_RACE_STR
          The race's maximum strength primary stat.
static int CS_STAT_RACE_WIS
          The race's maximum wisdom primary stat.
static int CS_STAT_RANGE
          The Range stat - this is what is currently readied by the player to fire.
static int CS_STAT_RES_ACID
          Resistance to acid.
static int CS_STAT_RES_BLIND
          Resistance to blindness.
static int CS_STAT_RES_COLD
          Resistance to cold.
static int CS_STAT_RES_CONF
          Resistance to confusion.
static int CS_STAT_RES_DEATH
          Resistance to death.
static int CS_STAT_RES_DEPLETE
          Resistance to depletion.
static int CS_STAT_RES_DRAIN
          Resistance to drain life.
static int CS_STAT_RES_ELEC
          Resistance to electricity.
static int CS_STAT_RES_FEAR
          Resistance to fear.
static int CS_STAT_RES_FIRE
          Resistance to fire.
static int CS_STAT_RES_GHOSTHIT
          Resistance to ghost hit.
static int CS_STAT_RES_HOLYWORD
          Resistance to holy word.
static int CS_STAT_RES_MAG
          Resistance to magical attacks.
static int CS_STAT_RES_PARA
          Resistance to paralysis.
static int CS_STAT_RES_PHYS
          Resistance to physical attacks.
static int CS_STAT_RES_POISON
          Resistance to poison.
static int CS_STAT_RES_SLOW
          Resistance to slowness.
static int CS_STAT_RES_TURN_UNDEAD
          Resistance to turn undead.
static int CS_STAT_RESIST_END
          End index of the resistances.
static int CS_STAT_RESIST_START
          Beginning index of the resistances.
static int CS_STAT_SKILLEXP_AGILITY
          Agility skills experience.
static int CS_STAT_SKILLEXP_AGLEVEL
          Agility skills level.
static int CS_STAT_SKILLEXP_END
          End index of skill experience stats.
static int CS_STAT_SKILLEXP_MAGIC
          Magical skills experience.
static int CS_STAT_SKILLEXP_MALEVEL
          Magical skills level.
static int CS_STAT_SKILLEXP_MELEVEL
          Mental skills level.
static int CS_STAT_SKILLEXP_MENTAL
          Mental skills experience.
static int CS_STAT_SKILLEXP_PELEVEL
          Personal skills level.
static int CS_STAT_SKILLEXP_PERSONAL
          Personal skills experience.
static int CS_STAT_SKILLEXP_PHLEVEL
          Physical skills level.
static int CS_STAT_SKILLEXP_PHYSIQUE
          Physical skills experience.
static int CS_STAT_SKILLEXP_START
          Beginning index of skill experience stats.
static int CS_STAT_SKILLEXP_WILEVEL
          Wisdom skills level.
static int CS_STAT_SKILLEXP_WISDOM
          Wisdom skills experience.
static int CS_STAT_SKILLINFO
          CS_STAT_SKILLINFO is used as the starting index point.
static int CS_STAT_SP
          The Spell Points stat.
static int CS_STAT_SPEED
          The Speed stat.
static int CS_STAT_SPELL_ATTUNE
          Attuned spell paths of a spell.
static int CS_STAT_SPELL_DENY
          Denied spell paths of a spell.
static int CS_STAT_SPELL_REPEL
          Repelled spell paths of a spell.
static int CS_STAT_STR
          The Strength Primary stat.
static int CS_STAT_TITLE
          The Title stat.
static int CS_STAT_WC
          The Weapon Class stat.
static int CS_STAT_WEAP_SP
          The Weapon Speed stat.
static int CS_STAT_WEIGHT_LIM
          The Weight Limit stat.
static int CS_STAT_WIS
          The Wisdom Primary stat.
static int FLOAT_MULTI
          Factor used to convert float int int values.
static int RESIST_TYPES
          The total number of resistances.
 
Method Summary
 void setSimpleWeaponSpeed(boolean simpleWeaponSpeed)
          Sets whether the CS_STAT_WEAP_SP value contains the weapon speed directly.
 void statInt2Received(int stat, short param)
          A "stats" command with a two-byte argument has been received.
 void statInt4Received(int stat, int param)
          A "stats" command with a four-byte argument has been received.
 void statInt8Received(int stat, long param)
          A "stats" command with an eight-byte argument has been received.
 void statSkillReceived(int stat, int level, long experience)
          A "stats" command with a skill argument has been received.
 void statStringReceived(int stat, java.lang.String param)
          A "stats" command with a string argument has been received.
 

Field Detail

C_STAT_EXP_NEXT_LEVEL

static final int C_STAT_EXP_NEXT_LEVEL
The global experience needed to reach next level stat.

See Also:
Constant Field Values

C_STAT_LOWFOOD

static final int C_STAT_LOWFOOD
The Low Food indicator. It ranges from 0 (ok) to 1 (low food).

See Also:
Constant Field Values

C_STAT_POISONED

static final int C_STAT_POISONED
The "is poisoned" indicator. It ranges from 0 (not poisoned) to 1 (poisoned).

See Also:
Constant Field Values

C_STAT_WEIGHT

static final int C_STAT_WEIGHT
The character's weight.

See Also:
Constant Field Values

CS_NUM_SKILLS

static final int CS_NUM_SKILLS
CS_NUM_SKILLS does not match how many skills there really are - instead, it is used as a range of values so that the client can have some idea how many skill categories there may be.

See Also:
Constant Field Values

CS_STAT_AC

static final int CS_STAT_AC
The Armor Class stat.

See Also:
Constant Field Values

CS_STAT_APPLIED_CHA

static final int CS_STAT_APPLIED_CHA
The charisma primary stat changes due to gear or skills.

See Also:
Constant Field Values

CS_STAT_APPLIED_CON

static final int CS_STAT_APPLIED_CON
The constitution primary stat changes due to gear or skills.

See Also:
Constant Field Values

CS_STAT_APPLIED_DEX

static final int CS_STAT_APPLIED_DEX
The dexterity primary stat changes due to gear or skills.

See Also:
Constant Field Values

CS_STAT_APPLIED_INT

static final int CS_STAT_APPLIED_INT
The integer primary stat changes due to gear or skills.

See Also:
Constant Field Values

CS_STAT_APPLIED_POW

static final int CS_STAT_APPLIED_POW
The power primary stat changes due to gear or skills.

See Also:
Constant Field Values

CS_STAT_APPLIED_STR

static final int CS_STAT_APPLIED_STR
The strength primary stat changes due to gear or skills.

See Also:
Constant Field Values

CS_STAT_APPLIED_WIS

static final int CS_STAT_APPLIED_WIS
The wisdom primary stat changes due to gear or skills.

See Also:
Constant Field Values

CS_STAT_ARMOUR

static final int CS_STAT_ARMOUR
The Armour stat.

See Also:
Constant Field Values

CS_STAT_BASE_CHA

static final int CS_STAT_BASE_CHA
The charisma primary stat without boosts or depletions.

See Also:
Constant Field Values

CS_STAT_BASE_CON

static final int CS_STAT_BASE_CON
The constitution primary stat without boosts or depletions.

See Also:
Constant Field Values

CS_STAT_BASE_DEX

static final int CS_STAT_BASE_DEX
The dexterity primary stat without boosts or depletions.

See Also:
Constant Field Values

CS_STAT_BASE_INT

static final int CS_STAT_BASE_INT
The integer primary stat without boosts or depletions.

See Also:
Constant Field Values

CS_STAT_BASE_POW

static final int CS_STAT_BASE_POW
The power primary stat without boosts or depletions.

See Also:
Constant Field Values

CS_STAT_BASE_STR

static final int CS_STAT_BASE_STR
The strength primary stat without boosts or depletions.

See Also:
Constant Field Values

CS_STAT_BASE_WIS

static final int CS_STAT_BASE_WIS
The wisdom primary stat without boosts or depletions.

See Also:
Constant Field Values

CS_STAT_CHA

static final int CS_STAT_CHA
The Charisma Primary stat.

See Also:
Constant Field Values

CS_STAT_CON

static final int CS_STAT_CON
The Constitution Primary stat.

See Also:
Constant Field Values

CS_STAT_DAM

static final int CS_STAT_DAM
The Damage stat.

See Also:
Constant Field Values

CS_STAT_DEX

static final int CS_STAT_DEX
The Dexterity Primary stat.

See Also:
Constant Field Values

CS_STAT_EXP

static final int CS_STAT_EXP
The Global Experience (32bit encoding) stat.

See Also:
Constant Field Values

CS_STAT_EXP64

static final int CS_STAT_EXP64
The Global Experience (64bit encoding) stat.

See Also:
Constant Field Values

CS_STAT_FLAGS

static final int CS_STAT_FLAGS
The various flags used in stats.

See Also:
Constant Field Values

CS_STAT_FOOD

static final int CS_STAT_FOOD
The Food stat.

See Also:
Constant Field Values

CS_STAT_GRACE

static final int CS_STAT_GRACE
The Grace stat.

See Also:
Constant Field Values

CS_STAT_HP

static final int CS_STAT_HP
The Hit Points stat.

See Also:
Constant Field Values

CS_STAT_INT

static final int CS_STAT_INT
The Intelligence Primary stat.

See Also:
Constant Field Values

CS_STAT_LEVEL

static final int CS_STAT_LEVEL
The Global Level stat.

See Also:
Constant Field Values

CS_STAT_MAXGRACE

static final int CS_STAT_MAXGRACE
The Maximum Grace stat.

See Also:
Constant Field Values

CS_STAT_MAXHP

static final int CS_STAT_MAXHP
The Maximum Hit Points stat.

See Also:
Constant Field Values

CS_STAT_MAXSP

static final int CS_STAT_MAXSP
The Maximum Spell Points stat.

See Also:
Constant Field Values

CS_STAT_POW

static final int CS_STAT_POW
The Power Primary stat.

See Also:
Constant Field Values

CS_STAT_RACE_CHA

static final int CS_STAT_RACE_CHA
The race's maximum charisma primary stat.

See Also:
Constant Field Values

CS_STAT_RACE_CON

static final int CS_STAT_RACE_CON
The race's maximum constitution primary stat.

See Also:
Constant Field Values

CS_STAT_RACE_DEX

static final int CS_STAT_RACE_DEX
The race's maximum dexterity primary stat.

See Also:
Constant Field Values

CS_STAT_RACE_INT

static final int CS_STAT_RACE_INT
The race's maximum intelligence primary stat.

See Also:
Constant Field Values

CS_STAT_RACE_POW

static final int CS_STAT_RACE_POW
The race's maximum power primary stat.

See Also:
Constant Field Values

CS_STAT_RACE_STR

static final int CS_STAT_RACE_STR
The race's maximum strength primary stat.

See Also:
Constant Field Values

CS_STAT_RACE_WIS

static final int CS_STAT_RACE_WIS
The race's maximum wisdom primary stat.

See Also:
Constant Field Values

CS_STAT_RANGE

static final int CS_STAT_RANGE
The Range stat - this is what is currently readied by the player to fire.

See Also:
Constant Field Values

CS_STAT_RES_ACID

static final int CS_STAT_RES_ACID
Resistance to acid.

See Also:
Constant Field Values

CS_STAT_RES_BLIND

static final int CS_STAT_RES_BLIND
Resistance to blindness.

See Also:
Constant Field Values

CS_STAT_RES_COLD

static final int CS_STAT_RES_COLD
Resistance to cold.

See Also:
Constant Field Values

CS_STAT_RES_CONF

static final int CS_STAT_RES_CONF
Resistance to confusion.

See Also:
Constant Field Values

CS_STAT_RES_DEATH

static final int CS_STAT_RES_DEATH
Resistance to death.

See Also:
Constant Field Values

CS_STAT_RES_DEPLETE

static final int CS_STAT_RES_DEPLETE
Resistance to depletion.

See Also:
Constant Field Values

CS_STAT_RES_DRAIN

static final int CS_STAT_RES_DRAIN
Resistance to drain life.

See Also:
Constant Field Values

CS_STAT_RES_ELEC

static final int CS_STAT_RES_ELEC
Resistance to electricity.

See Also:
Constant Field Values

CS_STAT_RES_FEAR

static final int CS_STAT_RES_FEAR
Resistance to fear.

See Also:
Constant Field Values

CS_STAT_RES_FIRE

static final int CS_STAT_RES_FIRE
Resistance to fire.

See Also:
Constant Field Values

CS_STAT_RES_GHOSTHIT

static final int CS_STAT_RES_GHOSTHIT
Resistance to ghost hit.

See Also:
Constant Field Values

CS_STAT_RES_HOLYWORD

static final int CS_STAT_RES_HOLYWORD
Resistance to holy word.

See Also:
Constant Field Values

CS_STAT_RES_MAG

static final int CS_STAT_RES_MAG
Resistance to magical attacks.

See Also:
Constant Field Values

CS_STAT_RES_PARA

static final int CS_STAT_RES_PARA
Resistance to paralysis.

See Also:
Constant Field Values

CS_STAT_RES_PHYS

static final int CS_STAT_RES_PHYS
Resistance to physical attacks.

See Also:
Constant Field Values

CS_STAT_RES_POISON

static final int CS_STAT_RES_POISON
Resistance to poison.

See Also:
Constant Field Values

CS_STAT_RES_SLOW

static final int CS_STAT_RES_SLOW
Resistance to slowness.

See Also:
Constant Field Values

CS_STAT_RES_TURN_UNDEAD

static final int CS_STAT_RES_TURN_UNDEAD
Resistance to turn undead.

See Also:
Constant Field Values

CS_STAT_RESIST_END

static final int CS_STAT_RESIST_END
End index of the resistances.

See Also:
Constant Field Values

CS_STAT_RESIST_START

static final int CS_STAT_RESIST_START
Beginning index of the resistances.

See Also:
Constant Field Values

CS_STAT_SKILLEXP_AGILITY

static final int CS_STAT_SKILLEXP_AGILITY
Agility skills experience.

See Also:
Constant Field Values

CS_STAT_SKILLEXP_AGLEVEL

static final int CS_STAT_SKILLEXP_AGLEVEL
Agility skills level.

See Also:
Constant Field Values

CS_STAT_SKILLEXP_END

static final int CS_STAT_SKILLEXP_END
End index of skill experience stats.

See Also:
Constant Field Values

CS_STAT_SKILLEXP_MAGIC

static final int CS_STAT_SKILLEXP_MAGIC
Magical skills experience.

See Also:
Constant Field Values

CS_STAT_SKILLEXP_MALEVEL

static final int CS_STAT_SKILLEXP_MALEVEL
Magical skills level.

See Also:
Constant Field Values

CS_STAT_SKILLEXP_MELEVEL

static final int CS_STAT_SKILLEXP_MELEVEL
Mental skills level.

See Also:
Constant Field Values

CS_STAT_SKILLEXP_MENTAL

static final int CS_STAT_SKILLEXP_MENTAL
Mental skills experience.

See Also:
Constant Field Values

CS_STAT_SKILLEXP_PELEVEL

static final int CS_STAT_SKILLEXP_PELEVEL
Personal skills level.

See Also:
Constant Field Values

CS_STAT_SKILLEXP_PERSONAL

static final int CS_STAT_SKILLEXP_PERSONAL
Personal skills experience.

See Also:
Constant Field Values

CS_STAT_SKILLEXP_PHLEVEL

static final int CS_STAT_SKILLEXP_PHLEVEL
Physical skills level.

See Also:
Constant Field Values

CS_STAT_SKILLEXP_PHYSIQUE

static final int CS_STAT_SKILLEXP_PHYSIQUE
Physical skills experience.

See Also:
Constant Field Values

CS_STAT_SKILLEXP_START

static final int CS_STAT_SKILLEXP_START
Beginning index of skill experience stats.

See Also:
Constant Field Values

CS_STAT_SKILLEXP_WILEVEL

static final int CS_STAT_SKILLEXP_WILEVEL
Wisdom skills level.

See Also:
Constant Field Values

CS_STAT_SKILLEXP_WISDOM

static final int CS_STAT_SKILLEXP_WISDOM
Wisdom skills experience.

See Also:
Constant Field Values

CS_STAT_SKILLINFO

static final int CS_STAT_SKILLINFO
CS_STAT_SKILLINFO is used as the starting index point. Skill number->name map is generated dynamically for the client, so a bunch of entries will be used here.

See Also:
Constant Field Values

CS_STAT_SP

static final int CS_STAT_SP
The Spell Points stat.

See Also:
Constant Field Values

CS_STAT_SPEED

static final int CS_STAT_SPEED
The Speed stat.

See Also:
Constant Field Values

CS_STAT_SPELL_ATTUNE

static final int CS_STAT_SPELL_ATTUNE
Attuned spell paths of a spell.

See Also:
Constant Field Values

CS_STAT_SPELL_DENY

static final int CS_STAT_SPELL_DENY
Denied spell paths of a spell.

See Also:
Constant Field Values

CS_STAT_SPELL_REPEL

static final int CS_STAT_SPELL_REPEL
Repelled spell paths of a spell.

See Also:
Constant Field Values

CS_STAT_STR

static final int CS_STAT_STR
The Strength Primary stat.

See Also:
Constant Field Values

CS_STAT_TITLE

static final int CS_STAT_TITLE
The Title stat.

See Also:
Constant Field Values

CS_STAT_WC

static final int CS_STAT_WC
The Weapon Class stat.

See Also:
Constant Field Values

CS_STAT_WEAP_SP

static final int CS_STAT_WEAP_SP
The Weapon Speed stat.

See Also:
Constant Field Values

CS_STAT_WEIGHT_LIM

static final int CS_STAT_WEIGHT_LIM
The Weight Limit stat.

See Also:
Constant Field Values

CS_STAT_WIS

static final int CS_STAT_WIS
The Wisdom Primary stat.

See Also:
Constant Field Values

FLOAT_MULTI

static final int FLOAT_MULTI
Factor used to convert float int int values.

See Also:
Constant Field Values

RESIST_TYPES

static final int RESIST_TYPES
The total number of resistances.

See Also:
Constant Field Values
Method Detail

setSimpleWeaponSpeed

void setSimpleWeaponSpeed(boolean simpleWeaponSpeed)
Sets whether the CS_STAT_WEAP_SP value contains the weapon speed directly.

Parameters:
simpleWeaponSpeed - whether CS_STAT_WEAP_SP is the weapon speed value

statInt2Received

void statInt2Received(int stat,
                      short param)
A "stats" command with a two-byte argument has been received.

Parameters:
stat - the stat
param - the parameter

statInt4Received

void statInt4Received(int stat,
                      int param)
A "stats" command with a four-byte argument has been received.

Parameters:
stat - the stat
param - the parameter

statInt8Received

void statInt8Received(int stat,
                      long param)
A "stats" command with an eight-byte argument has been received.

Parameters:
stat - the stat
param - the parameter

statSkillReceived

void statSkillReceived(int stat,
                       int level,
                       long experience)
A "stats" command with a skill argument has been received.

Parameters:
stat - the stat
level - the level parameter
experience - the experience parameter

statStringReceived

void statStringReceived(int stat,
                        @NotNull
                        java.lang.String param)
A "stats" command with a string argument has been received.

Parameters:
stat - the stat
param - the parameter