|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.bluebones.boggle.Round
public class Round
Represents a round of Boggle as seen by the server.
Constructor Summary | |
---|---|
Round(Turn[] turns,
char[][] letters)
Initialises a round with the specified values. |
Method Summary | |
---|---|
static Round |
getTestRound()
Gets a Round to be used in tests. |
Turn[] |
getTurns()
Gets all the client turns that make up this round. |
static void |
main(String[] args)
A fairly simple test of Round that can be fired from the
commandline. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Round(Turn[] turns, char[][] letters) throws DictionaryUnavailableException
turns
- Client turns that are part of
this round.letters
- Letters face up on the board
this round.
DictionaryUnavailableException
- If not dictionary is available
to validate words.Method Detail |
---|
public Turn[] getTurns()
public static Round getTestRound() throws DictionaryUnavailableException, FileNotFoundException, IOException
Round
to be used in tests. public
so
that tests in other classes can use it.
Round
DictionaryUnavailableException
- If the dictionary is
unavailable to higher level
calls.
FileNotFoundException
- If the dictionary file is
missing initially.
IOException
- If there is a problem reading
the dictionary file initially.public static void main(String[] args) throws DictionaryUnavailableException, RemoteException, UnknownHostException, FileNotFoundException, IOException
Round
that can be fired from the
commandline.
args
- Commandline arguments.
DictionaryUnavailableException
- If there is a problem with the
dictionary.
RemoteException
- If there is any problem setting
up clients.
UnknownHostException
- If clients cannot detect local
ip.
FileNotFoundException
IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |