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

Method Index

 o setup(String[])
Suggested: show the play space and the players' names.
 o showMessage(String)
Required: show the given message in some way to the user.
Suggested: show the given message in an inobtrusive message box.
 o showResults(String, String[], String[][], String[])
Suggested: show the name of the winner, as well as the given game info.
 o startGame(char[][])
Required: show the letters given on a boggle board, and allow the user to enter solutions.
 o stopGame()
Required: return the user's current solutions immediately.
Suggested: prevent the user from entering any more solutions.
 o tick()
Required: decrement the game clock (if implemented) by one second.

Methods

 o 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.
 o 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.
 o 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.
 o 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.
 o 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
 o tick
  public abstract void tick()
Required: decrement the game clock (if implemented) by one second.

All Packages  Class Hierarchy  This Package  Previous  Next  Index