gamekeeper2a
Interface IContestant

All Known Implementing Classes:
Contestant

public interface IContestant

Information about a single contestant. Unless the subclass specifies otherwise, assume that contestant names are case sensitive; and that leading and trailing spaces (but not internal spaces) are ignored and trimmed.


Method Summary
 int getGamesDrawn()
          Tells the number of games tied (draws) so far.
 int getGamesLost()
          Tells the number of games lost so far.
 int getGamesWon()
          Tells the number of games won so far.
 java.lang.String getName()
          Tells the name of this team.
 void recordDraw()
          Remember that a game was a draw.
 void recordLoss()
          Remember that a game was lost.
 void recordWin()
          Remember that a game was won.
 

Method Detail

getName

public java.lang.String getName()
Tells the name of this team.


getGamesWon

public int getGamesWon()
Tells the number of games won so far.


getGamesLost

public int getGamesLost()
Tells the number of games lost so far.


getGamesDrawn

public int getGamesDrawn()
Tells the number of games tied (draws) so far. For some types of games, this will always be zero.


recordWin

public void recordWin()
Remember that a game was won.


recordLoss

public void recordLoss()
Remember that a game was lost.


recordDraw

public void recordDraw()
Remember that a game was a draw.