|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jetrix.winlist.GameResult
public class GameResult
The result of a game.
Constructor Summary | |
---|---|
GameResult()
|
Method Summary | |
---|---|
Channel |
getChannel()
Return the channel associated to this result. |
Date |
getEndTime()
Return the date of the end of the game. |
Collection<GamePlayer> |
getGamePlayers()
Return the list of players involved in the game. |
Collection<GamePlayer> |
getPlayersAtRank(int rank)
Return the players that finished the game at the specified rank. |
Date |
getStartTime()
Return the date of the beginning of the game. |
int |
getTeamCount()
Return the number of teams in this game. |
void |
setChannel(Channel channel)
|
void |
setEndTime(Date endTime)
|
void |
setStartTime(Date startTime)
|
void |
update(User user,
boolean isWinner)
Update the result of the game by indicating if the specified user won or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GameResult()
Method Detail |
---|
public Date getStartTime()
public void setStartTime(Date startTime)
public Date getEndTime()
public void setEndTime(Date endTime)
public Channel getChannel()
public void setChannel(Channel channel)
public Collection<GamePlayer> getGamePlayers()
public void update(User user, boolean isWinner)
public Collection<GamePlayer> getPlayersAtRank(int rank)
public int getTeamCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |