|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gamekeeper2a.SimpleGamekeeper
Keep track of matches that have been played.
Constructor Summary | |
SimpleGamekeeper()
Creates a new instance of SimpleGamekeeper. |
Method Summary | |
protected boolean |
acceptGameResults(IGameResult mresult)
|
abstract boolean |
acceptGameResults(java.lang.String gameString)
Remember the results of a match. |
boolean |
acceptGameResults(java.lang.String resultsString,
boolean highScoreWins)
|
abstract boolean |
acceptGameResults(java.lang.String contestant1,
int contestant1Score,
java.lang.String contestant2,
int contestant2Score)
Remember the results of a match. |
boolean |
acceptGameResults(java.lang.String contestant1,
int contestant1Score,
java.lang.String contestant2,
int contestant2Score,
boolean highScoreWins)
Remember the results of a match. |
IContestant |
findContestant(java.lang.String contestantName)
Given a contestant name, find the information about it. |
java.lang.String[] |
listContestantResults()
Returns a string array giving information about all known contestants, exactly one contestant per array entry, in no particular order. |
java.util.ArrayList |
listContestants()
|
protected boolean |
setGameResults(IGameResult gresult)
Remember the results of a match. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SimpleGamekeeper()
Method Detail |
public IContestant findContestant(java.lang.String contestantName)
contestantName
- the name to search for; surrounding spaces are ignored.
public abstract boolean acceptGameResults(java.lang.String gameString)
public abstract boolean acceptGameResults(java.lang.String contestant1, int contestant1Score, java.lang.String contestant2, int contestant2Score)
public boolean acceptGameResults(java.lang.String contestant1, int contestant1Score, java.lang.String contestant2, int contestant2Score, boolean highScoreWins)
public boolean acceptGameResults(java.lang.String resultsString, boolean highScoreWins)
protected boolean acceptGameResults(IGameResult mresult)
protected boolean setGameResults(IGameResult gresult)
public java.util.ArrayList listContestants()
public java.lang.String[] listContestantResults()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |