|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.bluebones.boggle.Boggle
public class Boggle
Main class for a network-aware, computerised version of Boggle. Class to be
run on each client machine. RMI registry is started automatically on every
machine to do network comms.
$ java net.bluebones.boggle.Boggle
.
Field Summary | |
---|---|
static boolean |
DEBUG
Whether the game is in "debug" mode or not (will print messages to stdout). |
static String |
DICT_PATH
Path to the dictionary. |
static Dictionary |
dictionary
Dictionary that provides the list of acceptable words. |
static int |
timeInSecs
Number of seconds the timer will count down during a game. |
Method Summary | |
---|---|
static boolean[][] |
copy(boolean[][] orig)
Copies a boolean[][] . |
static void |
debug()
Writes a blank line to stdout if in debug mode. |
static void |
debug(char c)
Writes the specified char to stdout if in debug mode. |
static void |
debug(String msg)
Writes the specified message to stdout if in debug mode. |
static void |
debugBoard(char[][] letters)
Prints a text representation of the specified letters if in debug mode. |
static void |
main(String[] args)
Initialises the application. |
static void |
problem(String msg)
Displays the specified error message to the user. |
static void |
setTotalDice(int totalDice)
Set the number of dice being used on this machine. |
static int |
sideLength()
The number of dice along one side of the board. |
static int |
totalDice()
The total number of dice on the board. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int timeInSecs
public static final boolean DEBUG
public static final String DICT_PATH
public static Dictionary dictionary
Method Detail |
---|
public static void main(String[] args)
args
- Commandline arguments.public static final int totalDice()
public static final int sideLength()
public static void setTotalDice(int totalDice)
public static void problem(String msg)
msg
- Message to display.public static void debug(String msg)
msg
- Message to write.public static void debug()
public static void debug(char c)
c
- Message to write.public static void debugBoard(char[][] letters)
letters
- Letters to print.public static boolean[][] copy(boolean[][] orig)
boolean[][]
.
orig
- boolean[][]
to copy.
orig
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |