| Package | Description |
|---|---|
| com.threerings.stats.data | |
| com.threerings.stats.server.persist |
| Modifier and Type | Class and Description |
|---|---|
class |
StatModifier<T extends Stat>
Encapsulates a modification to a single stat that can be serialized and sent to a different
server, if needed, to update stats loaded at runtime.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ByteByteStringMapStat
Maps up to 127 string values to integers in the range 0 - 127.
|
class |
ByteStringSetStat
A string set that maps its values to bytes.
|
class |
IntArrayStat
Used to track an integer array statistic.
|
class |
IntSetStat
Used to track a statistic comprised of a bounded set of integers.
|
class |
IntStat
Used to track a single integer statistic.
|
class |
IntStringSetStat
A string set that maps its values to integers.
|
class |
MaxIntStat
Extends the
IntStat by maintaining a maximum value which is updated every time a value
is accumulated to the stat. |
class |
MaxValueIntStat
Extends the
IntStat by maintaining the maximum value that the stat has ever been
assigned (unlike MaxIntStat, which tracks the maximum value that the stat has ever
been incremented by). |
class |
SetStat<T> |
class |
ShortStringSetStat
A string set that maps its values to shorts.
|
class |
StringMapStat
Used to track a statistic comprised of a set of strings that map to numeric counts.
|
class |
StringSetStat
Used to track a statistic comprised of a set of strings.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Stat> |
StatSet.syncStat(StatModifier<T> modifier)
Updates a stat in this set, using the supplied StatModifier.
|
| Modifier and Type | Method and Description |
|---|---|
Stat |
Stat.clone() |
Stat |
Stat.Type.newStat()
Returns a new blank stat instance of the specified type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
StatSet.addQuietly(Stat stat)
Don't call this method, it's only needed by some tricky business we do when preventing
distributed object event generation for all but the bounty criteria related stats.
|
void |
StatSet.Container.addToStats(Stat stat) |
static int |
Stat.initType(Stat.Type type,
Stat prototype)
Used by the
Stat.Type implementation to map itself to an integer code. |
void |
StatSet.Container.updateStats(Stat stat) |
| Constructor and Description |
|---|
StatSet(Iterable<Stat> contents)
Creates a stat set with the specified contents.
|
StatSet(Iterator<Stat> contents)
Creates a stat set with the specified contents.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Stat> |
StatRepository.updateStat(int playerId,
StatModifier<T> modifier)
Applies a modification to a single stat.
|
| Modifier and Type | Method and Description |
|---|---|
ArrayList<Stat> |
StatRepository.loadStats(int playerId)
Loads the stats associated with the specified player.
|
| Modifier and Type | Method and Description |
|---|---|
void |
StatRepository.writeModified(int playerId,
Stat[] stats)
Writes out any of the stats in the supplied array that have been modified since they were
first loaded.
|
| Modifier and Type | Method and Description |
|---|---|
void |
StatRepository.writeModified(int playerId,
Iterable<Stat> stats)
Writes out any of the stats in the supplied iterable that have been modified since they were
first loaded.
|
Copyright © 2015. All rights reserved.