Class AbstractAutoPlayer

java.lang.Object
  extended by AbstractPlayer
      extended by AbstractAutoPlayer
All Implemented Interfaces:
IAutoPlayer, IPlayer, java.lang.Iterable<java.lang.String>
Direct Known Subclasses:
BadAutoPlayer, BoardFirstAutoPlayer, LexiconFirstAutoPlayer

public abstract class AbstractAutoPlayer
extends AbstractPlayer
implements IAutoPlayer

Augments AutoPlayer by adding abstract method for autoplayer.


Field Summary
 
Fields inherited from class AbstractPlayer
myLexicon, myScore, myScoreKeeper, myView, myWords
 
Constructor Summary
AbstractAutoPlayer()
           
 
Method Summary
abstract  void findAllValidWords(BoggleBoard board, ILexicon lex, int minLength)
          Find all the valid words automatically, found words should be added via the IPlayer interface's add method.
 java.lang.String getName()
          Return string "AutoPlayer".
 
Methods inherited from class AbstractPlayer
add, clear, getScore, initialize, iterator, setView, wordCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface IPlayer
add, clear, getScore, initialize, setView, wordCount
 
Methods inherited from interface java.lang.Iterable
iterator
 

Constructor Detail

AbstractAutoPlayer

public AbstractAutoPlayer()
Method Detail

findAllValidWords

public abstract void findAllValidWords(BoggleBoard board,
                                       ILexicon lex,
                                       int minLength)
Description copied from interface: IAutoPlayer
Find all the valid words automatically, found words should be added via the IPlayer interface's add method.

Specified by:
findAllValidWords in interface IAutoPlayer
Parameters:
board - is the BoggleBoard on which wrods are found
lex - is the lexicon in which words are searched/validated
minLength - of words found by an autoplayer

getName

public java.lang.String getName()
Return string "AutoPlayer".

Specified by:
getName in interface IPlayer
Specified by:
getName in class AbstractPlayer
Returns:
this player's name