 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.server.crossfire;
26 import java.util.HashMap;
28 import org.jetbrains.annotations.NotNull;
40 @SuppressWarnings(
"StaticCollection")
41 private static final Map<Integer, String>
STAT_NAMES = new HashMap<>();
122 return STAT_NAMES.computeIfAbsent(stat, state2 -> {
123 System.err.println(
"Unknown stat #"+stat);
static final int CS_STAT_DEX
The Dexterity Primary stat.
static final int CS_STAT_POW
The Power Primary stat.
static final int CS_STAT_SPELL_ATTUNE
Attuned spell paths of a spell.
static final int CS_STAT_WEAP_SP
The Weapon Speed stat.
static final int CS_STAT_GOLEM_HP
The golem's hitpoints, 0 if no golem.
static final int CS_STAT_APPLIED_CON
The constitution primary stat changes due to gear or skills.
static final int CS_STAT_OVERLOAD
Indicates how much the character is overloaded: 0=not overloaded, 1=overloaded.
Utility class for converting stat values to stat names.
static final int CS_STAT_APPLIED_INT
The integer primary stat changes due to gear or skills.
static final int RESIST_TYPES
The total number of resistances.
static final int CS_STAT_WIS
The Wisdom Primary stat.
static final int CS_STAT_TITLE
The Title stat.
static final int CS_STAT_DAM
The Damage stat.
static final int CS_STAT_SPELL_DENY
Denied spell paths of a spell.
static final int CS_STAT_FOOD
The Food stat.
static final int CS_STAT_APPLIED_STR
The strength primary stat changes due to gear or skills.
static final int CS_STAT_RACE_CHA
The race's maximum charisma primary stat.
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 val...
static final int CS_STAT_SKILLINFO
CS_STAT_SKILLINFO is used as the starting index point.
static final int CS_STAT_RACE_CON
The race's maximum constitution primary stat.
static final int CS_STAT_BASE_POW
The power primary stat without boosts or depletions.
static final int CS_STAT_RACE_WIS
The race's maximum wisdom primary stat.
static final int CS_STAT_STR
The Strength Primary stat.
static final int CS_STAT_BASE_INT
The integer primary stat without boosts or depletions.
static final int CS_STAT_RANGE
The Range stat - this is what is currently readied by the player to fire.
static final int CS_STAT_AC
The Armor Class stat.
static final int CS_STAT_RESIST_START
Beginning index of the resistances.
static final int CS_STAT_HP
The Hit Points stat.
static String getStatNames(final int stat)
Returns the stat name for a stat value.
static final int CS_STAT_MAXHP
The Maximum Hit Points stat.
static final int CS_STAT_GOD_NAME
The character's god or NO_GOD_NAME if he has none.
StatUtils()
Private constructor to prevent instantiation.
static final int CS_STAT_APPLIED_CHA
The charisma primary stat changes due to gear or skills.
static final int CS_STAT_EXP64
The Global Experience (64bit encoding) stat.
static final int CS_STAT_ITEM_POWER
The maximum item power the character can handle.
static final int CS_STAT_SP
The Spell Points stat.
static final int CS_STAT_SPELL_REPEL
Repelled spell paths of a spell.
static final int CS_STAT_LEVEL
The Global Level stat.
static final int CS_STAT_RACE_INT
The race's maximum intelligence primary stat.
static final int CS_STAT_RACE_STR
The race's maximum strength primary stat.
static final int CS_STAT_RACE_DEX
The race's maximum dexterity primary stat.
static final int CS_STAT_CHA
The Charisma Primary stat.
static final int CS_STAT_WEIGHT_LIM
The Weight Limit stat.
static final int CS_STAT_GOLEM_MAXHP
The golem's maximum hitpoints, 0 if no golem.
static final int CS_STAT_WC
The Weapon Class stat.
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.
static final int CS_STAT_CON
The Constitution Primary stat.
static final int CS_STAT_BASE_CON
The constitution primary stat without boosts or depletions.
static final int CS_STAT_APPLIED_DEX
The dexterity primary stat changes due to gear or skills.
static final int CS_STAT_BASE_STR
The strength primary stat without boosts or depletions.
static final int CS_STAT_INT
The Intelligence Primary stat.
static final int CS_STAT_FLAGS
The various flags used in stats.
static final int CS_STAT_APPLIED_POW
The power primary stat changes due to gear or skills.
static final int CS_STAT_RACE_POW
The race's maximum power primary stat.
static final int CS_STAT_SPEED
The Speed stat.
static final int CS_STAT_GRACE
The Grace stat.
static final int CS_STAT_MAXSP
The Maximum Spell Points stat.
static final int CS_STAT_ARMOUR
The Armour stat.
static final int CS_STAT_APPLIED_WIS
The wisdom primary stat changes due to gear or skills.
static final int CS_STAT_CHARACTER_FLAGS
Flags the character's current state.
static final int CS_STAT_BASE_DEX
The dexterity primary stat without boosts or depletions.
static final int CS_STAT_EXP
The Global Experience (32bit encoding) stat.
static final int CS_STAT_BASE_CHA
The charisma primary stat without boosts or depletions.
static final int CS_STAT_BASE_WIS
The wisdom primary stat without boosts or depletions.
static final Map< Integer, String > STAT_NAMES
The stat names: maps stat value to stat name.