public class FloatStat extends Stat<Float>
definition| Constructor and Description |
|---|
FloatStat(StatGroup group,
StatDefinition definition) |
FloatStat(StatGroup group,
StatDefinition definition,
float val) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Stat<Float> otherStat)
Add the value of "other" to this stat.
|
void |
clear()
Resets the statistic to its initial state.
|
Stat<Float> |
computeInterval(Stat<Float> base)
Compute interval value with respect to the base value.
|
Float |
get()
Returns the value of the statistic.
|
protected String |
getFormattedValue()
Returns the value of the statistic as a formatted string.
|
boolean |
isNotSet()
Returns whether the statistic is in its initial state.
|
void |
negate()
Negate the value.
|
void |
set(Float newValue)
Set the stat value.
|
copy, copyAndAdd, copyAndClear, getDefinition, toString, toStringVerbosepublic FloatStat(StatGroup group, StatDefinition definition)
public FloatStat(StatGroup group, StatDefinition definition, float val)
public void add(Stat<Float> otherStat)
Statpublic Stat<Float> computeInterval(Stat<Float> base)
StatcomputeInterval in class Stat<Float>public void negate()
Statpublic void clear()
BaseStatprotected String getFormattedValue()
BaseStatgetFormattedValue in class BaseStat<Float>Copyright © 2024. All rights reserved.