public abstract class Stat<T> extends BaseStat<T> implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected StatDefinition |
definition |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
add(Stat<T> other)
Add the value of "other" to this stat.
|
abstract Stat<T> |
computeInterval(Stat<T> base)
Compute interval value with respect to the base value.
|
Stat<T> |
copy()
Returns a copy of this statistic.
|
Stat<T> |
copyAndAdd(StatGroup group)
Return a copy of this statistic and add to group.
|
Stat<T> |
copyAndClear()
Return a copy of this stat, and clear the stat's value.
|
StatDefinition |
getDefinition() |
abstract void |
negate()
Negate the value.
|
abstract void |
set(T newValue)
Set the stat value.
|
String |
toString() |
String |
toStringVerbose()
Includes the per-stat description in the output string.
|
clear, get, getFormattedValue, isNotSetprotected final StatDefinition definition
public abstract void set(T newValue)
public abstract Stat<T> computeInterval(Stat<T> base)
public abstract void negate()
public Stat<T> copy()
BaseStatpublic Stat<T> copyAndAdd(StatGroup group)
public StatDefinition getDefinition()
public String toStringVerbose()
Copyright © 2024. All rights reserved.