Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.stats.StatsParser Class Reference

Utility class to parse stat names. More...

+ Collaboration diagram for com.realtime.crossfire.jxclient.stats.StatsParser:

Static Public Member Functions

static int parseStat (@NotNull final String name)
 Converts a stat name into a stat index. More...
 

Private Member Functions

 StatsParser ()
 Private constructor to prevent instantiation. More...
 

Static Private Attributes

static final Map< String, Integer > STAT_TABLE = new HashMap<>()
 Maps stat names to stat index values. More...
 

Detailed Description

Utility class to parse stat names.

Author
Andreas Kirschbaum

Definition at line 32 of file StatsParser.java.

Constructor & Destructor Documentation

◆ StatsParser()

com.realtime.crossfire.jxclient.stats.StatsParser.StatsParser ( )
private

Private constructor to prevent instantiation.

Definition at line 113 of file StatsParser.java.

Member Function Documentation

◆ parseStat()

static int com.realtime.crossfire.jxclient.stats.StatsParser.parseStat ( @NotNull final String  name)
static

Converts a stat name into a stat index.

Parameters
namethe stat name
Returns
the stat index
Exceptions
IllegalArgumentExceptionif the stat name is undefined

Definition at line 122 of file StatsParser.java.

Referenced by com.realtime.crossfire.jxclient.skin.io.GaugeUpdaterParser.parseGaugeUpdater(), and com.realtime.crossfire.jxclient.skin.io.ParseUtils.parseStat().

+ Here is the caller graph for this function:

Member Data Documentation

◆ STAT_TABLE

final Map<String, Integer> com.realtime.crossfire.jxclient.stats.StatsParser.STAT_TABLE = new HashMap<>()
staticprivate

Maps stat names to stat index values.

Only stats useful in skin files are included.

Definition at line 39 of file StatsParser.java.


The documentation for this class was generated from the following file: