 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.stats;
25 import java.util.HashMap;
27 import org.jetbrains.annotations.NotNull;
40 @SuppressWarnings(
"StaticCollection")
41 private static final Map<String, Integer>
STAT_TABLE = new HashMap<>();
140 public static int parseStat(@NotNull
final String name) {
142 throw new IllegalArgumentException(
"undefined stat '"+name+
"'");
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_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_RES_BLIND
Resistance to blindness.
static final int C_STAT_HOSTILE
The "is hostile" indicator.
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.
static final int CS_STAT_APPLIED_INT
The integer primary stat changes due to gear or skills.
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_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 Map< String, Integer > STAT_TABLE
Maps stat names to stat index values.
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_RES_MAG
Resistance to magical attacks.
static final int CS_STAT_RACE_WIS
The race's maximum wisdom primary stat.
static final int C_STAT_STEALTHY
The "is stealthy" indicator.
Utility class to parse stat names.
static final int CS_STAT_STR
The Strength Primary stat.
static final int CS_STAT_RES_FIRE
Resistance to fire.
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_RES_TURN_UNDEAD
Resistance to turn undead.
static final int CS_STAT_RES_DRAIN
Resistance to drain life.
static final int CS_STAT_AC
The Armor Class stat.
static final int C_STAT_CURRENT_SKILL
The name of the current skill.
static final int C_STAT_WIZARD
The "is DM" indicator.
static final int C_STAT_STARVING
The "is starving" indicator.
static final int CS_STAT_HP
The Hit Points stat.
static final int C_STAT_BLIND
The "is blind" indicator.
static final int CS_STAT_RES_PARA
Resistance to paralysis.
static final int CS_STAT_GOD_NAME
The character's god or NO_GOD_NAME if he has none.
static final int C_STAT_LOWFOOD
The Low Food indicator.
static final int CS_STAT_RES_COLD
Resistance to cold.
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_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_RES_DEATH
Resistance to death.
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_RES_DEPLETE
Resistance to depletion.
static final int CS_STAT_RES_ELEC
Resistance to electricity.
static final int C_STAT_EXP_NEXT_LEVEL
The global experience needed to reach next level 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.
static final int CS_STAT_RES_PHYS
Resistance to physical attacks.
This is the representation of all the statistics of a player, like its speed or its experience.
static final int CS_STAT_RES_FEAR
Resistance to fear.
static final int C_STAT_CONFUSED
The "is confused" indicator.
static final int C_STAT_DISEASED
The "is diseased" indicator.
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 int parseStat(@NotNull final String name)
Converts a stat name into a stat index.
static final int CS_STAT_BASE_STR
The strength primary stat without boosts or depletions.
static final int C_STAT_PARALYZED
The "is paralyzed" indicator.
static final int CS_STAT_RES_GHOSTHIT
Resistance to ghost hit.
static final int CS_STAT_RES_SLOW
Resistance to slowness.
static final int CS_STAT_INT
The Intelligence Primary stat.
static final int C_STAT_POISONED
The "is poisoned" indicator.
static final int CS_STAT_RES_CONF
Resistance to confusion.
static final int CS_STAT_RES_POISON
Resistance to poison.
static final int CS_STAT_APPLIED_POW
The power primary stat changes due to gear or skills.
static final int CS_STAT_RES_HOLYWORD
Resistance to holy word.
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_APPLIED_WIS
The wisdom primary stat changes due to gear or skills.
static final int CS_STAT_ARMOUR
The Armour stat.
static final int CS_STAT_CHARACTER_FLAGS
Flags the character's current state.
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_RES_ACID
Resistance to acid.
static final int C_STAT_XRAY
The "has xray vision" indicator.
StatsParser()
Private constructor to prevent instantiation.
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 int C_STAT_NOT_PERFECT
The "is not perfect" indicator.