Interface joggle.client.JoggleFE
All Packages Class Hierarchy This Package Previous Next Index
Interface joggle.client.JoggleFE
- public interface JoggleFE
- extends Object
JoggleFE is the interface through which a Joggle game server can
interact with one of its users.
Source
- Version:
- $Id: JoggleFE.java,v 1.6 1996/12/06 15:08:43 gadde Exp $
- Author:
- Syam Gadde (gadde@cs.duke.edu)
- See Also:
- JoggleAL
-
setup(String[])
- Suggested: show the play space and the players' names.
-
showMessage(String)
- Required: show the given message in some way to the user.
Suggested: show the given message in an inobtrusive message box.
-
showResults(String, String[], String[][], String[])
- Suggested: show the name of the winner, as well as the given game info.
-
startGame(char[][])
- Required: show the letters given on a boggle board, and allow the user
to enter solutions.
-
stopGame()
- Required: return the user's current solutions immediately.
Suggested: prevent the user from entering any more solutions.
-
tick()
- Required: decrement the game clock (if implemented) by one second.
setup
public abstract void setup(String players[])
- Suggested: show the play space and the players' names.
- Parameters:
- players - The names of the players that are playing in this game.
startGame
public abstract void startGame(char board[][])
- Required: show the letters given on a boggle board, and allow the user
to enter solutions. Also, set the game clock (if implemented) to 3:00
(three minutes).
- Parameters:
- board - The board array.
stopGame
public abstract String[] stopGame()
- Required: return the user's current solutions immediately.
Suggested: prevent the user from entering any more solutions.
If stopGame() does not return within a reasonable amount of time, the
game is forfeited.
- Returns:
- s The user's solutions.
showResults
public abstract void showResults(String winner,
String common[],
String playersWords[][],
String missed[])
- Suggested: show the name of the winner, as well as the given game info.
- Parameters:
- winner - The name of the winner of the game.
- common - The words that more than one player got.
- playersWords - An array indexed in the order of players given in
setup(); each element is itself an array consisting of a full
listy of that players' answers.
- missed - The words that everyone missed.
showMessage
public abstract void showMessage(String msg)
- Required: show the given message in some way to the user.
Suggested: show the given message in an inobtrusive message box.
- Parameters:
- msg - The message to display
tick
public abstract void tick()
- Required: decrement the game clock (if implemented) by one second.
All Packages Class Hierarchy This Package Previous Next Index