com.threerings.stats.data
Class IntStatIncrementer

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

public class IntStatIncrementer
extends StatModifier<IntStat>

Increments a particular int stat by a specified amount.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
protected  int _delta
           
 
Fields inherited from class com.threerings.stats.data.StatModifier
_type
 
Constructor Summary
IntStatIncrementer()
          Constructs an empty IntStatIncrementer (for Streaming purposes).
IntStatIncrementer(Stat.Type type, int delta)
           
 
Method Summary
 void modify(IntStat 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

_delta

protected int _delta
Constructor Detail

IntStatIncrementer

public IntStatIncrementer(Stat.Type type,
                          int delta)

IntStatIncrementer

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

Method Detail

modify

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

Specified by:
modify in class StatModifier<IntStat>