public abstract class StatModifier<T extends Stat> extends Object implements com.threerings.io.Streamable
| Constructor and Description |
|---|
StatModifier(Stat.Type type)
Creates a modifier that will operate on the supplied stat type.
|
| Modifier and Type | Method and Description |
|---|---|
Stat.Type |
getType()
Returns the
Stat.Type of the stat being modified. |
abstract void |
modify(T stat)
Applies the modification to the stat in question.
|
void |
readObject(com.threerings.io.ObjectInputStream in)
Reads our custom streamable fields.
|
void |
writeObject(com.threerings.io.ObjectOutputStream out)
Writes our custom streamable fields.
|
public StatModifier(Stat.Type type)
public void writeObject(com.threerings.io.ObjectOutputStream out)
throws IOException
IOExceptionpublic void readObject(com.threerings.io.ObjectInputStream in)
throws IOException,
ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic abstract void modify(T stat)
Copyright © 2015. All rights reserved.