Interface IPlayerView
public interface IPlayerView
Method Summary |
void |
showError(java.lang.String word,
java.lang.String message)
Show an error during the game. |
void |
showWord(java.lang.String word,
java.util.List<BoardCell> list,
IPlayer player)
A view should support some way to visualize a player's word
found on a board at some set of board locations. |
showWord
void showWord(java.lang.String word,
java.util.List<BoardCell> list,
IPlayer player)
- A view should support some way to visualize a player's word
found on a board at some set of board locations.
- Parameters:
word
- is word visualizedlist
- of BoardCells the word is found on (on some board)player
- is the player finding a word
showError
void showError(java.lang.String word,
java.lang.String message)
- Show an error during the game.
- Parameters:
word
- is cause of error, e.g., duplicate, not in lexiconmessage
- is displayed with the word