Crossfire JXClient, Trunk
Static Public Member Functions | Static Package Functions | Private Member Functions | Static Private Attributes | List of all members
com.realtime.crossfire.jxclient.stats.StatsParser Class Reference
Collaboration diagram for com.realtime.crossfire.jxclient.stats.StatsParser:
Collaboration graph

Static Public Member Functions

static int parseStat (@NotNull final String name)
 

Static Package Functions

 [static initializer]
 

Private Member Functions

 StatsParser ()
 

Static Private Attributes

static final Map< String, Integer > STAT_TABLE = new HashMap<>()
 

Detailed Description

Utility class to parse stat names.

Author
Andreas Kirschbaum

Definition at line 33 of file StatsParser.java.

Constructor & Destructor Documentation

◆ StatsParser()

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

Private constructor to prevent instantiation.

Definition at line 131 of file StatsParser.java.

Member Function Documentation

◆ [static initializer]()

com.realtime.crossfire.jxclient.stats.StatsParser.[static initializer]
staticpackage

◆ 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 140 of file StatsParser.java.

References com.realtime.crossfire.jxclient.stats.StatsParser.STAT_TABLE.

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 41 of file StatsParser.java.

Referenced by com.realtime.crossfire.jxclient.stats.StatsParser.parseStat().


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