boolean |
DoubleRoundRobinTournament.allPlayersFree(Game game) |
Checks whether all participating players of a game are free to play right now.
|
static void |
Leaderboard.refresh(Game[] games) |
Refresh the leaderboard given the current state of all active games.
|
static void |
GameserverMain.sendEndMessages(Game game,
int turnId) |
Send end messages to players if game won/aborted.
|
static int |
GameserverMain.sendStartMessage(Game game,
int playerIndex) |
Sends game start message to a player.
|
static boolean |
GameserverMain.sendStartMessages(Game game,
int startingPlayerIndex) |
Send start messages to both players before game is played.
|
static void |
GameserverMain.sendTurnMessage(Game game,
int playerIndex,
int turnId,
java.lang.String playerUrl) |
Send turn message to player and execute the turn.
|
void |
TournamentView.setGames(Game[] games) |
Gets an array of games, evaluates their results and displays the leaderboard in ordered fashion.
|
boolean |
DoubleRoundRobinTournament.startGame(Game game) |
Will start a given game and log its players as busy if they were previously available.
|
static void |
GameserverMain.startGame(Game game) |
Starts a game after it was created.
|
int |
DoubleRoundRobinTournament.updateGame(int gameId,
Game newState) |
Updates the state of a game with given Id, sorting it into the appropriate list.
|