22 package com.realtime.crossfire.jxclient.scripts;
25 import java.util.HashMap;
27 import org.jetbrains.annotations.NotNull;
39 private static final Map<Integer, String>
STAT_NAMES =
new HashMap<>();
96 STAT_NAMES.put(stat,
"resists");
99 STAT_NAMES.put(skill,
"skill");
116 final String statName = STAT_NAMES.get(stat);
117 if (statName == null) {
118 throw new AssertionError();
static final int CS_STAT_GOLEM_HP
The golem's hitpoints, 0 if no golem.
static final int CS_STAT_RACE_CHA
The race's maximum charisma primary stat.
static final int CS_STAT_DEX
The Dexterity Primary stat.
static final int CS_STAT_SPELL_ATTUNE
Attuned spell paths of a spell.
static final int RESIST_TYPES
The total number of resistances.
static final int CS_STAT_TITLE
The Title stat.
static final int CS_STAT_SPELL_DENY
Denied spell paths of a spell.
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_APPLIED_CON
The constitution primary stat changes due to gear or skills.
static final int CS_STAT_RESIST_START
Beginning index of the resistances.
static final int CS_STAT_BASE_POW
The power primary stat without boosts or depletions.
static final int CS_STAT_POW
The Power Primary stat.
static final int CS_STAT_APPLIED_INT
The integer primary stat changes due to gear or skills.
StatUtils()
Private constructor to prevent instantiation.
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_HP
The Hit Points stat.
static final int CS_STAT_LEVEL
The Global Level stat.
static final int CS_STAT_MAXHP
The Maximum Hit Points stat.
static final int CS_STAT_RACE_WIS
The race's maximum wisdom primary stat.
static final int CS_STAT_DAM
The Damage stat.
static final int CS_STAT_STR
The Strength Primary stat.
static final int CS_STAT_AC
The Armor Class stat.
static final int CS_STAT_FOOD
The Food stat.
static final int CS_STAT_WIS
The Wisdom Primary stat.
static final int CS_STAT_BASE_INT
The integer primary stat without boosts or depletions.
static final int CS_STAT_SP
The Spell Points stat.
static String getStatNames(final int stat)
Returns the stat name for a stat value.
static final int CS_STAT_RACE_CON
The race's maximum constitution primary stat.
static final int CS_STAT_WEIGHT_LIM
The Weight Limit stat.
static final int CS_STAT_APPLIED_STR
The strength 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_GOLEM_MAXHP
The golem's maximum hitpoints, 0 if no golem.
static final int CS_STAT_SKILLINFO
CS_STAT_SKILLINFO is used as the starting index point.
static final int CS_STAT_CON
The Constitution Primary stat.
static final int CS_STAT_RACE_STR
The race's maximum strength primary stat.
static final int CS_STAT_APPLIED_DEX
The dexterity primary stat changes due to gear or skills.
Utility class for converting stat values to stat names.
static final int CS_STAT_RACE_INT
The race's maximum intelligence primary stat.
static final int CS_STAT_MAXGRACE
The Maximum Grace stat.
static final int CS_STAT_RACE_DEX
The race's maximum dexterity primary stat.
static final int CS_STAT_BASE_CON
The constitution primary stat without boosts or depletions.
static final int CS_STAT_CHA
The Charisma Primary stat.
static final int CS_STAT_EXP64
The Global Experience (64bit encoding) stat.
static final int CS_STAT_APPLIED_CHA
The charisma primary stat changes due to gear or skills.
static final int CS_STAT_SPELL_REPEL
Repelled spell paths of a spell.
static final int CS_STAT_WC
The Weapon Class stat.
static final int CS_STAT_EXP
The Global Experience (32bit encoding) stat.
static final int CS_STAT_BASE_WIS
The wisdom primary stat without boosts or depletions.
static final int CS_STAT_BASE_DEX
The dexterity primary stat without boosts or depletions.
static final int CS_STAT_RACE_POW
The race's maximum power primary stat.
static final int CS_STAT_INT
The Intelligence Primary stat.
static final int CS_STAT_FLAGS
The various flags used in stats.
This is the representation of all the statistics of a player, like its speed or its experience...
static final int CS_STAT_WEAP_SP
The Weapon Speed stat.
static final int CS_STAT_MAXSP
The Maximum Spell Points stat.
static final int CS_STAT_APPLIED_POW
The power primary stat changes due to gear or skills.
static final int CS_STAT_SPEED
The Speed stat.
static final int CS_STAT_GRACE
The Grace stat.
static final int CS_STAT_BASE_CHA
The charisma primary stat without boosts or depletions.
static final Map< Integer, String > STAT_NAMES
The stat names: maps stat value to stat name.
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.