|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectks.domain.GameStat
Statistic of the result of an individual's performance on a game.
GameResult
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 |
public GameStat(Status stat, boolean inCompetition, boolean hasWonTable)
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 |
public boolean didWin()
public int getScore()
public java.lang.String getUser()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |