com.realtime.crossfire.jxclient.stats
Class StatsParser

java.lang.Object
  extended by com.realtime.crossfire.jxclient.stats.StatsParser

public class StatsParser
extends java.lang.Object

Utility class to parse stat names.


Field Summary
private static java.util.Map<java.lang.String,java.lang.Integer> STAT_TABLE
          Maps stat names to stat index values.
 
Constructor Summary
private StatsParser()
          Private constructor to prevent instantiation.
 
Method Summary
static int parseStat(java.lang.String name)
          Convert a stat name into a stat index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STAT_TABLE

@NotNull
private static final java.util.Map<java.lang.String,java.lang.Integer> STAT_TABLE
Maps stat names to stat index values. Only stats useful in skin files are included.

Constructor Detail

StatsParser

private StatsParser()
Private constructor to prevent instantiation.

Method Detail

parseStat

public static int parseStat(@NotNull
                            java.lang.String name)
Convert a stat name into a stat index.

Parameters:
name - The stat name.
Returns:
The stat index.
Throws:
java.lang.IllegalArgumentException - if the stat name is undefined