ks.domain
Class GameStat

java.lang.Object
  extended byks.domain.GameStat
All Implemented Interfaces:
java.io.Serializable

public class GameStat
extends java.lang.Object
implements java.io.Serializable

Statistic of the result of an individual's performance on a game.

GameResult

Since:
V1.7.3
See Also:
Serialized Form

Constructor Summary
GameStat(Status stat, boolean inCompetition, boolean hasWonTable)
          GameStat constructor.
 
Method Summary
 boolean didWin()
          Returns Win/loss (boolean, true if they won)
 int getScore()
          Returns User's score at end of game (int)
 java.lang.String getUser()
          Returns a username string for the user who this GameStat object is for
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameStat

public GameStat(Status stat,
                boolean inCompetition,
                boolean hasWonTable)
GameStat constructor.

Given a particular game stat, we also need to know if a competition was being played and whether this stat represents the winner for the table.

Method Detail

didWin

public boolean didWin()
Returns Win/loss (boolean, true if they won)


getScore

public int getScore()
Returns User's score at end of game (int)


getUser

public java.lang.String getUser()
Returns a username string for the user who this GameStat object is for