com.realtime.crossfire.jxclient.skin.io
Class GaugeUpdaterParser

java.lang.Object
  extended by com.realtime.crossfire.jxclient.skin.io.GaugeUpdaterParser

public class GaugeUpdaterParser
extends java.lang.Object

Creates GaugeUpdater instances from string representations.


Field Summary
private  ItemSet itemSet
          The ItemSet to use.
private  SkillSet skillSet
          The SkillSet for looking up skill names.
private  Stats stats
          The Stats instance to use.
 
Constructor Summary
GaugeUpdaterParser(Stats stats, ItemSet itemSet, SkillSet skillSet)
          Creates a new instance.
 
Method Summary
 GaugeUpdater parseGaugeUpdater(java.lang.String name, ExperienceTable experienceTable)
          Parses a gauge updater value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

itemSet

@NotNull
private final ItemSet itemSet
The ItemSet to use.


skillSet

@NotNull
private final SkillSet skillSet
The SkillSet for looking up skill names.


stats

@NotNull
private final Stats stats
The Stats instance to use.

Constructor Detail

GaugeUpdaterParser

public GaugeUpdaterParser(@NotNull
                          Stats stats,
                          @NotNull
                          ItemSet itemSet,
                          @NotNull
                          SkillSet skillSet)
Creates a new instance.

Parameters:
stats - the stats instance to use
itemSet - the item set to use
skillSet - the skill set for looking up skill names
Method Detail

parseGaugeUpdater

@NotNull
public GaugeUpdater parseGaugeUpdater(@NotNull
                                              java.lang.String name,
                                              @NotNull
                                              ExperienceTable experienceTable)
                               throws java.io.IOException
Parses a gauge updater value.

Parameters:
name - the gauge updater value to parse
experienceTable - the experience table to query
Returns:
the gauge updater
Throws:
java.io.IOException - if the gauge updater value does not exist