game.multiplayer
Interface MultiplayerGameFrame

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
MultiplayerGameFrameImpl

public interface MultiplayerGameFrame
extends java.rmi.Remote

This interface represents the MultiplayerGameFrame of the Remote Interface for the WordMoleClient.

Author:
Chris Barton

Method Summary
 void disconnectPlayer(Client client)
          Removes the client from the MultiplayerGameFrame window.
 void notifyWinner(Client winner)
          Notifies the MultiplayerGameFrame of the winner and ends the current game.
 void startGame()
          Begins the current Game.
 void updateScore(Client client, int score)
          Updates the client's score on the MultiplayerGameFrame
 

Method Detail

startGame

void startGame()
               throws java.rmi.RemoteException
Begins the current Game.

Throws:
java.rmi.RemoteException

updateScore

void updateScore(Client client,
                 int score)
                 throws java.rmi.RemoteException
Updates the client's score on the MultiplayerGameFrame

Parameters:
client - - Client - Client who needs updating.
score - - int - Current client's score
Throws:
java.rmi.RemoteException

disconnectPlayer

void disconnectPlayer(Client client)
                      throws java.rmi.RemoteException
Removes the client from the MultiplayerGameFrame window.

Parameters:
client - - Client - Client that disconnected.
Throws:
java.rmi.RemoteException

notifyWinner

void notifyWinner(Client winner)
                  throws java.rmi.RemoteException
Notifies the MultiplayerGameFrame of the winner and ends the current game.

Parameters:
winner - - Client - Winner of the game.
Throws:
java.rmi.RemoteException