|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectnet.bluebones.boggle.UI
public class UI
User Interface for Boggle.
| Constructor Summary | |
|---|---|
UI(HumanPlayer player)
Initialises this UI. |
|
| Method Summary | |
|---|---|
void |
endGame()
Ends the game by showing a dialog and beeping. |
Theme |
getTheme()
Gets the board's currently active Theme. |
String[] |
getWords()
Gets the words currenlty in the word area of this UI. |
void |
info(String msg)
Displays an information dialog with the specified message. |
void |
initWordArea()
Empties the word area and makes it possible to enter words. |
void |
problem(String errMsg)
Displays an error message dialog with the specified message. |
void |
resetTimer()
Sets the timer progress bar back to 0. |
void |
setBoard(char[][] letters)
Initialises the board in this UI to hold the specified letters. |
void |
setConnection(ConnectionType type,
String addr,
int clients)
Sets the connection information visible in this UI. |
void |
setConnection(ConnectionType type,
String addr,
int clients,
int dots)
Sets the displayed connection in this UI. |
void |
setRubber(Rubber r)
Sets the displayed rubber details. |
void |
setTheme(Theme theme)
Sets the board's currently active Theme. |
void |
setTimer(int tenthsOfASecond)
Sets the timer to the specified amount. |
void |
setTimerMaximum(int timeInSecs)
Sets the maximum time of the timer in this UI. |
void |
showResults(String results)
Displays the results to the user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UI(HumanPlayer player)
player - HumanPlayer to whom this UI belongs.| Method Detail |
|---|
public void setBoard(char[][] letters)
letters - Letters to populate the board with.public void initWordArea()
public void resetTimer()
public void info(String msg)
msg - Message to display.public void problem(String errMsg)
errMsg - Error message to display.public void endGame()
public void setTimer(int tenthsOfASecond)
tenthsOfASecond - Amount to iset the timer to in in tenths of a
second.public void setTimerMaximum(int timeInSecs)
timeInSecs - Maximum time to set the timer to.
public void setConnection(ConnectionType type,
String addr,
int clients)
type - ConnectionType of current
connection.addr - Address of the host.clients - Number of clients attached to this player.
public void setConnection(ConnectionType type,
String addr,
int clients,
int dots)
UI.
type - ConnectionType of current
connection.addr - Address of the host.clients - Number of clients attached to this player.dots - Number of dots to display (to animate while
connecting).public void setRubber(Rubber r)
r - Rubber details to display.public String[] getWords()
UI.
String[] of words.public void showResults(String results)
results - String results to display.public void setTheme(Theme theme)
Theme.
theme - Theme to set active.public Theme getTheme()
Theme.
Theme
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||