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 |
---|
static final int C_STAT_EXP_NEXT_LEVEL
static final int C_STAT_LOWFOOD
static final int C_STAT_POISONED
static final int C_STAT_WEIGHT
static final int CS_NUM_SKILLS
static final int CS_STAT_AC
static final int CS_STAT_APPLIED_CHA
static final int CS_STAT_APPLIED_CON
static final int CS_STAT_APPLIED_DEX
static final int CS_STAT_APPLIED_INT
static final int CS_STAT_APPLIED_POW
static final int CS_STAT_APPLIED_STR
static final int CS_STAT_APPLIED_WIS
static final int CS_STAT_ARMOUR
static final int CS_STAT_BASE_CHA
static final int CS_STAT_BASE_CON
static final int CS_STAT_BASE_DEX
static final int CS_STAT_BASE_INT
static final int CS_STAT_BASE_POW
static final int CS_STAT_BASE_STR
static final int CS_STAT_BASE_WIS
static final int CS_STAT_CHA
static final int CS_STAT_CON
static final int CS_STAT_DAM
static final int CS_STAT_DEX
static final int CS_STAT_EXP
static final int CS_STAT_EXP64
static final int CS_STAT_FLAGS
static final int CS_STAT_FOOD
static final int CS_STAT_GRACE
static final int CS_STAT_HP
static final int CS_STAT_INT
static final int CS_STAT_LEVEL
static final int CS_STAT_MAXGRACE
static final int CS_STAT_MAXHP
static final int CS_STAT_MAXSP
static final int CS_STAT_POW
static final int CS_STAT_RACE_CHA
static final int CS_STAT_RACE_CON
static final int CS_STAT_RACE_DEX
static final int CS_STAT_RACE_INT
static final int CS_STAT_RACE_POW
static final int CS_STAT_RACE_STR
static final int CS_STAT_RACE_WIS
static final int CS_STAT_RANGE
static final int CS_STAT_RES_ACID
static final int CS_STAT_RES_BLIND
static final int CS_STAT_RES_COLD
static final int CS_STAT_RES_CONF
static final int CS_STAT_RES_DEATH
static final int CS_STAT_RES_DEPLETE
static final int CS_STAT_RES_DRAIN
static final int CS_STAT_RES_ELEC
static final int CS_STAT_RES_FEAR
static final int CS_STAT_RES_FIRE
static final int CS_STAT_RES_GHOSTHIT
static final int CS_STAT_RES_HOLYWORD
static final int CS_STAT_RES_MAG
static final int CS_STAT_RES_PARA
static final int CS_STAT_RES_PHYS
static final int CS_STAT_RES_POISON
static final int CS_STAT_RES_SLOW
static final int CS_STAT_RES_TURN_UNDEAD
static final int CS_STAT_RESIST_END
static final int CS_STAT_RESIST_START
static final int CS_STAT_SKILLEXP_AGILITY
static final int CS_STAT_SKILLEXP_AGLEVEL
static final int CS_STAT_SKILLEXP_END
static final int CS_STAT_SKILLEXP_MAGIC
static final int CS_STAT_SKILLEXP_MALEVEL
static final int CS_STAT_SKILLEXP_MELEVEL
static final int CS_STAT_SKILLEXP_MENTAL
static final int CS_STAT_SKILLEXP_PELEVEL
static final int CS_STAT_SKILLEXP_PERSONAL
static final int CS_STAT_SKILLEXP_PHLEVEL
static final int CS_STAT_SKILLEXP_PHYSIQUE
static final int CS_STAT_SKILLEXP_START
static final int CS_STAT_SKILLEXP_WILEVEL
static final int CS_STAT_SKILLEXP_WISDOM
static final int CS_STAT_SKILLINFO
static final int CS_STAT_SP
static final int CS_STAT_SPEED
static final int CS_STAT_SPELL_ATTUNE
static final int CS_STAT_SPELL_DENY
static final int CS_STAT_SPELL_REPEL
static final int CS_STAT_STR
static final int CS_STAT_TITLE
static final int CS_STAT_WC
static final int CS_STAT_WEAP_SP
static final int CS_STAT_WEIGHT_LIM
static final int CS_STAT_WIS
static final int FLOAT_MULTI
static final int RESIST_TYPES
Method Detail |
---|
void setSimpleWeaponSpeed(boolean simpleWeaponSpeed)
CS_STAT_WEAP_SP
value
contains the weapon speed directly.
simpleWeaponSpeed
- whether CS_STAT_WEAP_SP
is the
weapon speed valuevoid statInt2Received(int stat, short param)
stat
- the statparam
- the parametervoid statInt4Received(int stat, int param)
stat
- the statparam
- the parametervoid statInt8Received(int stat, long param)
stat
- the statparam
- the parametervoid statSkillReceived(int stat, int level, long experience)
stat
- the statlevel
- the level parameterexperience
- the experience parametervoid statStringReceived(int stat, @NotNull java.lang.String param)
stat
- the statparam
- the parameter