|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAbstractPlayer
HumanPlayer
public class HumanPlayer
Field Summary |
---|
Fields inherited from class AbstractPlayer |
---|
myModel, myScore, myView, myWords |
Constructor Summary | |
---|---|
HumanPlayer(BoggleModel model,
java.lang.String name)
|
Method Summary | |
---|---|
void |
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 |
---|
getScore, initialize, setView |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HumanPlayer(BoggleModel model, java.lang.String name)
Method Detail |
---|
public void add(java.lang.String word)
add
in interface IPlayer
add
in class AbstractPlayer
word
- is the word added to this playerpublic 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 |