22 package com.realtime.crossfire.jxclient.stats;
24 import java.util.HashMap;
26 import org.jetbrains.annotations.NotNull;
39 private static final Map<String, Integer>
STAT_TABLE =
new HashMap<>();
122 public static int parseStat(@NotNull
final String name) {
123 if (!STAT_TABLE.containsKey(name)) {
124 throw new IllegalArgumentException(
"undefined stat '"+name+
"'");
127 return STAT_TABLE.get(name);
static final int CS_STAT_GOLEM_HP
The golem's hitpoints, 0 if no golem.
static final int CS_STAT_RES_BLIND
Resistance to blindness.
StatsParser()
Private constructor to prevent instantiation.
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_TITLE
The Title stat.
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_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.
static final int C_STAT_LOWFOOD
The Low Food indicator.
static final int CS_STAT_RES_TURN_UNDEAD
Resistance to turn undead.
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_RACE_WIS
The race's maximum wisdom primary stat.
Utility class to parse stat names.
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_RES_FIRE
Resistance to fire.
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 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_RES_DRAIN
Resistance to drain life.
static final int CS_STAT_RES_PHYS
Resistance to physical attacks.
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_RES_PARA
Resistance to paralysis.
static final int CS_STAT_RES_DEPLETE
Resistance to depletion.
static final int CS_STAT_RES_ELEC
Resistance to electricity.
static final int CS_STAT_RES_MAG
Resistance to magical attacks.
static final int CS_STAT_APPLIED_DEX
The dexterity primary stat changes due to gear or skills.
static final int CS_STAT_RES_COLD
Resistance to cold.
static final int CS_STAT_RES_GHOSTHIT
Resistance to ghost hit.
static final int C_STAT_EXP_NEXT_LEVEL
The global experience needed to reach next level stat.
static final int CS_STAT_RES_FEAR
Resistance to fear.
static final Map< String, Integer > STAT_TABLE
Maps stat names to stat index values.
static final int CS_STAT_RACE_INT
The race's maximum intelligence primary stat.
static final int CS_STAT_RES_CONF
Resistance to confusion.
static final int CS_STAT_RES_DEATH
Resistance to death.
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_WC
The Weapon Class stat.
static final int C_STAT_POISONED
The "is poisoned" indicator.
static final int CS_STAT_BASE_WIS
The wisdom primary stat without boosts or depletions.
static final int C_STAT_WEIGHT
The character's weight.
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_RES_SLOW
Resistance to slowness.
static final int CS_STAT_INT
The Intelligence Primary stat.
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_APPLIED_POW
The power primary stat changes due to gear or skills.
static final int CS_STAT_RES_POISON
Resistance to poison.
static final int CS_STAT_RES_HOLYWORD
Resistance to holy word.
static final int CS_STAT_RES_ACID
Resistance to acid.
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 int parseStat(@NotNull final String name)
Converts a stat name into a stat index.
static final int CS_STAT_APPLIED_WIS
The wisdom primary stat changes due to gear or skills.
static final int CS_STAT_ARMOUR
The Armour stat.