com.threerings.stats.data
Class IntSetStatAdder

java.lang.Object
  extended by com.threerings.stats.data.StatModifier<IntSetStat>
      extended by com.threerings.stats.data.IntSetStatAdder
All Implemented Interfaces:
Streamable

public class IntSetStatAdder
extends StatModifier<IntSetStat>

Adds a value to an IntSetStat.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
protected  int _value
           
 
Fields inherited from class com.threerings.stats.data.StatModifier
_type
 
Constructor Summary
IntSetStatAdder()
          Constructs an empty IntSetStatAdder (for Streaming purposes).
IntSetStatAdder(Stat.Type type, int value)
           
 
Method Summary
 void modify(IntSetStat stat)
          Applies the modification to the stat in question.
 
Methods inherited from class com.threerings.stats.data.StatModifier
getType, readObject, writeObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_value

protected int _value
Constructor Detail

IntSetStatAdder

public IntSetStatAdder(Stat.Type type,
                       int value)

IntSetStatAdder

public IntSetStatAdder()
Constructs an empty IntSetStatAdder (for Streaming purposes).

Method Detail

modify

public void modify(IntSetStat stat)
Description copied from class: StatModifier
Applies the modification to the stat in question.

Specified by:
modify in class StatModifier<IntSetStat>