soc.client.stats
Class SOCGameStatistics

java.lang.Object
  extended by soc.client.stats.SOCGameStatistics

public class SOCGameStatistics
extends java.lang.Object


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

listener

private final java.util.concurrent.atomic.AtomicReference<SOCGameStatistics.Listener> listener

game

private final SOCGame game

rolls

private final SOCGameStatistics.DiceRolls rolls
Constructor Detail

SOCGameStatistics

public SOCGameStatistics(SOCGame game)
Method Detail

dispose

public void dispose()

addListener

public SOCGameStatistics.ListenerRegistration addListener(SOCGameStatistics.Listener listener)

fire

protected void fire()

diceRolled

public void diceRolled(SOCGameStatistics.DiceRollEvent evt)

getRollCount

public java.lang.Integer getRollCount(int roll,
                                      int playerId)
Parameters:
roll -
playerId -
Returns:
null If out of range