org.jogre.common
Class GameOver

java.lang.Object
  extended byorg.jogre.common.GameOver
All Implemented Interfaces:
IGameOver

public class GameOver
extends Object
implements IGameOver

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.

Version:
Alpha 0.2.3
Author:
Bob Marks

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

GameOver

public 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).

Parameters:
players - List of players.
results - List of results.

GameOver

public GameOver(String[] players,
                int[] results,
                int[] oldRatings,
                int[] newRatings)
Constructor which takes a list of players, results, old and new ratings.

Parameters:
players - List of players.
results - List of results.
oldRatings - List of ratings before game.
newRatings - List of ratings after game.
Method Detail

getNewRatings

public int[] getNewRatings()
Return an integer array of new ratings.

Returns:
New ratings.

getOldRatings

public int[] getOldRatings()
Return an integer array of old ratings.

Returns:
Old ratings.

getPlayers

public String[] getPlayers()
Return a String array of players who were playing.

Returns:
Players.

getResults

public int[] getResults()
Return an integer array of results.

Returns:
Results.