|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object AbstractPlayer HumanPlayer
public class HumanPlayer
Field Summary |
---|
Fields inherited from class AbstractPlayer |
---|
myLexicon, myScore, myScoreKeeper, myView, myWords |
Constructor Summary | |
---|---|
HumanPlayer(ILexicon lex,
java.lang.String name)
|
Method Summary | |
---|---|
boolean |
add(java.lang.String word)
Add word if the word is in the lexicon and isn't a duplicate. |
java.lang.String |
getName()
Returns name of this player. |
Methods inherited from class AbstractPlayer |
---|
clear, getScore, initialize, iterator, setView, wordCount |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HumanPlayer(ILexicon lex, java.lang.String name)
Method Detail |
---|
public boolean add(java.lang.String word)
add
in interface IPlayer
add
in class AbstractPlayer
word
- is the word added to this player
public java.lang.String getName()
getName
in interface IPlayer
getName
in class AbstractPlayer
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |