game.multiplayer
Interface WordMoleClient

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

public interface WordMoleClient
extends java.rmi.Remote

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

Author:
Chris Barton

Method Summary
 void cancelInvite()
          The host has cancelled the Invitation.
 void displayMessage(java.lang.String message)
          Display's the message on the WordMoleClient.
 void receiveGame(Game game)
          The WordMoleClient receives an Game from the server.
 void receiveInvite(Invitation invite)
          The WordMoleClient receives an Invite from another client.
 void receiveInviteDecision(Client client, boolean decision)
          The WordMoleClient as a host of an Invite receives a decision from one of the invitees.
 void updateClientList(Client[] clients)
          Updates the WordMoleClient's playerList to display the current other players states.
 

Method Detail

updateClientList

void updateClientList(Client[] clients)
                      throws java.rmi.RemoteException
Updates the WordMoleClient's playerList to display the current other players states.

Parameters:
clients - - Client [] - List of clients.
Throws:
java.rmi.RemoteException

receiveInvite

void receiveInvite(Invitation invite)
                   throws java.rmi.RemoteException
The WordMoleClient receives an Invite from another client.

Parameters:
invite - - Invite received.
Throws:
java.rmi.RemoteException

receiveInviteDecision

void receiveInviteDecision(Client client,
                           boolean decision)
                           throws java.rmi.RemoteException
The WordMoleClient as a host of an Invite receives a decision from one of the invitees.

Parameters:
client - - Client of the invitee.
decision - - Decision of the invitee.
Throws:
java.rmi.RemoteException

cancelInvite

void cancelInvite()
                  throws java.rmi.RemoteException
The host has cancelled the Invitation.

Throws:
java.rmi.RemoteException

receiveGame

void receiveGame(Game game)
                 throws java.rmi.RemoteException
The WordMoleClient receives an Game from the server.

Parameters:
game -
Throws:
java.rmi.RemoteException

displayMessage

void displayMessage(java.lang.String message)
                    throws java.rmi.RemoteException
Display's the message on the WordMoleClient.

Parameters:
message - - Message received.
Throws:
java.rmi.RemoteException