|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soc.client.stats.SOCGameStatistics
public class SOCGameStatistics
Nested Class Summary | |
---|---|
static class |
SOCGameStatistics.DiceRollEvent
|
private static class |
SOCGameStatistics.DiceRolls
Tracks the number of times each dice value is rolled by each player. |
static interface |
SOCGameStatistics.Listener
|
static interface |
SOCGameStatistics.ListenerRegistration
|
Field Summary | |
---|---|
private SOCGame |
game
|
private java.util.concurrent.atomic.AtomicReference<SOCGameStatistics.Listener> |
listener
|
private SOCGameStatistics.DiceRolls |
rolls
|
Constructor Summary | |
---|---|
SOCGameStatistics(SOCGame game)
|
Method Summary | |
---|---|
SOCGameStatistics.ListenerRegistration |
addListener(SOCGameStatistics.Listener listener)
|
void |
diceRolled(SOCGameStatistics.DiceRollEvent evt)
|
void |
dispose()
|
protected void |
fire()
|
java.lang.Integer |
getRollCount(int roll,
int playerId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.util.concurrent.atomic.AtomicReference<SOCGameStatistics.Listener> listener
private final SOCGame game
private final SOCGameStatistics.DiceRolls rolls
Constructor Detail |
---|
public SOCGameStatistics(SOCGame game)
Method Detail |
---|
public void dispose()
public SOCGameStatistics.ListenerRegistration addListener(SOCGameStatistics.Listener listener)
protected void fire()
public void diceRolled(SOCGameStatistics.DiceRollEvent evt)
public java.lang.Integer getRollCount(int roll, int playerId)
roll
- playerId
-
null
If out of range
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |