|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jogre.common.GameOver
Game over class which describes what has happened when a game was over. This includes the players who were playing, results, old ratings, new ratings etc.
| Field Summary |
| Fields inherited from interface org.jogre.common.IGameOver |
AGREED_DRAW, DRAW, LOSE, RESULTS, USER_RESIGNS, WIN |
| Constructor Summary | |
GameOver(String[] players,
int[] results)
Constructor which takes a list of players, results, old and new ratings (the ratings arrays will return an empty integer array of size 0). |
|
GameOver(String[] players,
int[] results,
int[] oldRatings,
int[] newRatings)
Constructor which takes a list of players, results, old and new ratings. |
|
| Method Summary | |
int[] |
getNewRatings()
Return an integer array of new ratings. |
int[] |
getOldRatings()
Return an integer array of old ratings. |
String[] |
getPlayers()
Return a String array of players who were playing. |
int[] |
getResults()
Return an integer array of results. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GameOver(String[] players,
int[] results)
players - List of players.results - List of results.
public GameOver(String[] players,
int[] results,
int[] oldRatings,
int[] newRatings)
players - List of players.results - List of results.oldRatings - List of ratings before game.newRatings - List of ratings after game.| Method Detail |
public int[] getNewRatings()
public int[] getOldRatings()
public String[] getPlayers()
public int[] getResults()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||