|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectks.domain.Match
Used to calculate and record the top score in any game.
There is a lastTime
attribute that can be used to determine
"stale" matches, where a client has not responded with their
'gameOverCommand' update.
Constructor Summary | |
Match(Table t)
Each match must be constructed from a specific table. |
Method Summary | |
void |
addScore(Status s)
Add a user's score to the game. |
Status |
getBest()
Return winner of table. |
GameResult |
getGameResult()
Get GameResult (return null if not ready yet). |
java.util.Date |
getLastUpdateTime()
Get time last Match was updated. |
boolean |
isDone()
Determine if everyone has counted themselves in. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Match(Table t)
t
- Table for which GameOver commands are being sent.Method Detail |
public void addScore(Status s)
s
- a player on the table has turned in score.public Status getBest()
public GameResult getGameResult()
public java.util.Date getLastUpdateTime()
public boolean isDone()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |