A B C E F G H I L M R S T

A

acceptGameResults(IGameResult) - Method in class gamekeeper2a.SimpleGamekeeper
 
acceptGameResults(IGameResult) - Method in class gamekeeper2a.GolfGamekeeper
Private method to check the situation before passing it along to the superclass to accept the result.
acceptGameResults(IGameResult) - Method in class gamekeeper2a.BaseballGamekeeper
Private method to check the situation before passing it along to the superclass to accept the result.
acceptGameResults(String) - Method in class gamekeeper2a.SimpleGamekeeper
Remember the results of a match.
acceptGameResults(String) - Method in class gamekeeper2a.GolfGamekeeper
Remember the results of a match.
acceptGameResults(String) - Method in class gamekeeper2a.BaseballGamekeeper
Remember the results of a game The contestant with the LARGER score is the winner.
acceptGameResults(String, boolean) - Method in class gamekeeper2a.SimpleGamekeeper
 
acceptGameResults(String, int, String, int) - Method in class gamekeeper2a.SimpleGamekeeper
Remember the results of a match.
acceptGameResults(String, int, String, int) - Method in class gamekeeper2a.GolfGamekeeper
Remember the results of a match.
acceptGameResults(String, int, String, int) - Method in class gamekeeper2a.BaseballGamekeeper
Remember the results of a match.
acceptGameResults(String, int, String, int, boolean) - Method in class gamekeeper2a.SimpleGamekeeper
Remember the results of a match.

B

BaseballGamekeeper - class gamekeeper2a.BaseballGamekeeper.
A baseball keeper is aware of the fact that in baseball: 1.
BaseballGamekeeper() - Constructor for class gamekeeper2a.BaseballGamekeeper
Creates a new instance of BaseballGamekeeper

C

Contestant - class gamekeeper2a.Contestant.
Information about a single contestant.
Contestant(String) - Constructor for class gamekeeper2a.Contestant
Creates a new instance of contestant, with initial no games recorded.

E

equals(Object) - Method in class gamekeeper2a.GameResult
 

F

findContestant(String) - Method in class gamekeeper2a.SimpleGamekeeper
Given a contestant name, find the information about it.

G

gamekeeper2a - package gamekeeper2a
 
GameResult - class gamekeeper2a.GameResult.
Information about a single, completed game.
GameResult(String) - Constructor for class gamekeeper2a.GameResult
Creates a new instance of GameResult.
GameResult(String, boolean) - Constructor for class gamekeeper2a.GameResult
Creates a new instance of GameResult.
GameResult(String, int, String, int) - Constructor for class gamekeeper2a.GameResult
Figure out the game result, under the default assumption that high score wins.
GameResult(String, int, String, int, boolean) - Constructor for class gamekeeper2a.GameResult
Figure out the game result.
getGamesDrawn() - Method in interface gamekeeper2a.IContestant
Tells the number of games tied (draws) so far.
getGamesDrawn() - Method in class gamekeeper2a.Contestant
 
getGamesLost() - Method in interface gamekeeper2a.IContestant
Tells the number of games lost so far.
getGamesLost() - Method in class gamekeeper2a.Contestant
 
getGamesWon() - Method in interface gamekeeper2a.IContestant
Tells the number of games won so far.
getGamesWon() - Method in class gamekeeper2a.Contestant
 
getLoserName() - Method in interface gamekeeper2a.IGameResult
Tells the name of the loser of the match.
getLoserName() - Method in class gamekeeper2a.GameResult
Tells the name of the loser of the match.
getLoserScore() - Method in interface gamekeeper2a.IGameResult
Tells the score of the loser.
getLoserScore() - Method in class gamekeeper2a.GameResult
Tells the score of the loser.
getName() - Method in interface gamekeeper2a.IContestant
Tells the name of this team.
getName() - Method in class gamekeeper2a.Contestant
Tells the name of this contestant.
getWinnerName() - Method in interface gamekeeper2a.IGameResult
Tells the name of the winner of the match.
getWinnerName() - Method in class gamekeeper2a.GameResult
Tells the name of the winner of the match.
getWinnerScore() - Method in interface gamekeeper2a.IGameResult
Tells the score of the winner.
getWinnerScore() - Method in class gamekeeper2a.GameResult
Tells the score of the winner.
getWinRatio() - Method in class gamekeeper2a.Contestant
Return a number which summarizes how well the contestant has done so far.
GolfGamekeeper - class gamekeeper2a.GolfGamekeeper.
A Golf game keeper is aware of the fact that: 1.
GolfGamekeeper() - Constructor for class gamekeeper2a.GolfGamekeeper
Creates a new instance of GolfGameKeeper

H

hashCode() - Method in class gamekeeper2a.GameResult
 

I

IContestant - interface gamekeeper2a.IContestant.
Information about a single contestant.
IGameResult - interface gamekeeper2a.IGameResult.
Information about a single, completed match or game.
isDraw() - Method in interface gamekeeper2a.IGameResult
Tells whether or not the game was a draw.
isDraw() - Method in class gamekeeper2a.GameResult
Tells if this match is a draw (true) or not (false).

L

listContestantResults() - Method in class gamekeeper2a.SimpleGamekeeper
Returns a string array giving information about all known contestants, exactly one contestant per array entry, in no particular order.
listContestants() - Method in class gamekeeper2a.SimpleGamekeeper
 

M

main(String[]) - Static method in class gamekeeper2a.MyTestClass
Run the test cases contained in this file.
main(String[]) - Static method in class gamekeeper2a.GolfGamekeeper
Purely for testing.
main(String[]) - Static method in class gamekeeper2a.GameResult
Purely for testing.
main(String[]) - Static method in class gamekeeper2a.BaseballGamekeeper
Purely for testing.
MyTestClass - class gamekeeper2a.MyTestClass.
Test cases for two types of game keepers.
MyTestClass() - Constructor for class gamekeeper2a.MyTestClass
 

R

recordDraw() - Method in interface gamekeeper2a.IContestant
Remember that a game was a draw.
recordDraw() - Method in class gamekeeper2a.Contestant
 
recordLoss() - Method in interface gamekeeper2a.IContestant
Remember that a game was lost.
recordLoss() - Method in class gamekeeper2a.Contestant
Remember that a game was lost.
recordWin() - Method in interface gamekeeper2a.IContestant
Remember that a game was won.
recordWin() - Method in class gamekeeper2a.Contestant
Remember that a game was won.

S

setGameResults(IGameResult) - Method in class gamekeeper2a.SimpleGamekeeper
Remember the results of a match.
SimpleGamekeeper - class gamekeeper2a.SimpleGamekeeper.
Keep track of matches that have been played.
SimpleGamekeeper() - Constructor for class gamekeeper2a.SimpleGamekeeper
Creates a new instance of SimpleGamekeeper.

T

toString() - Method in class gamekeeper2a.SimpleGamekeeper
 
toString() - Method in class gamekeeper2a.GameResult
Make a nice, one-line printable string.
toString() - Method in class gamekeeper2a.Contestant
Format a string, without line feeds or surrounding whitespace, with basic contestant information.

A B C E F G H I L M R S T