| Package | Description |
|---|---|
| com.threerings.stats.data | |
| com.threerings.stats.server.persist |
| Modifier and Type | Method and Description |
|---|---|
Stat.Type |
StatModifier.getType()
Returns the
Stat.Type of the stat being modified. |
Stat.Type |
Stat.getType()
Returns the type of this statistic.
|
static Stat.Type |
Stat.getType(int code)
|
| Modifier and Type | Method and Description |
|---|---|
<T> void |
StatSet.addToSetStat(Stat.Type type,
T value)
Adds a value to a
SetStat. |
void |
StatSet.appendStat(Stat.Type type,
int value)
Appends an integer value to an
IntArrayStat. |
<T> boolean |
StatSet.containsValue(Stat.Type type,
T value)
Returns true if the specified
SetStat contains the specified value, false
otherwise. |
String |
Stat.AuxDataSource.getCodeString(Stat.Type type,
int code)
Maps the specified unique code back to its string value.
|
int[] |
StatSet.getIntArrayStat(Stat.Type type)
Returns the current value of the specified integer array statistic.
|
int |
StatSet.getIntStat(Stat.Type type)
Returns the current value of the specified integer statistic.
|
int |
StatSet.getMapValue(Stat.Type type,
String value)
Returns the value to which the specified string is mapped in a
StringMapStat or zero
if the value has not been mapped. |
int |
StatSet.getMaxIntStat(Stat.Type type)
Returns the maximum value by which the specified integer statistic has ever been
incremented.
|
int |
StatSet.getSetStatSize(Stat.Type type)
Returns the current size of the specified SetStat statistic.
|
int |
Stat.AuxDataSource.getStringCode(Stat.Type type,
String value)
Maps the specified string to a unique integer value.
|
void |
StatSet.incrementMapStat(Stat.Type type,
String value,
int amount)
Increments a string value in a
StringMapStat. |
void |
StatSet.incrementStat(Stat.Type type,
int delta)
Increments an integer statistic in this set.
|
static int |
Stat.initType(Stat.Type type,
Stat prototype)
Used by the
Stat.Type implementation to map itself to an integer code. |
void |
StatSet.maxStat(Stat.Type type,
int value)
Sets an integer stat to the specified value, if it exceeds our existing recorded value.
|
void |
StatSet.setStat(Stat.Type type,
int value)
Sets an integer statistic in this set.
|
| Constructor and Description |
|---|
IntSetStatAdder(Stat.Type type,
int value) |
IntStatIncrementer(Stat.Type type,
int delta) |
IntStatMinimumer(Stat.Type type,
int minimum) |
StatModifier(Stat.Type type)
Creates a modifier that will operate on the supplied stat type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
StatRepository.clearMapping(Stat.Type type,
String value)
This is only used for testing.
|
String |
StatRepository.getCodeString(Stat.Type type,
int code) |
int |
StatRepository.getStringCode(Stat.Type type,
String value) |
Copyright © 2015. All rights reserved.