dk.brics.bisimulationGame.controller
Interface GameController

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

public interface GameController
extends java.rmi.Remote

A local controller listening on view events that may have global effects. It informs a global message passer of such events, and it receives commands from the message passer in response to remote game events.

Author:
Martin Mosegaard martinm@daimi.au.dk

Method Summary
 void quit()
          Invoked by the message passer when the other player wants to quit.
 void setChatMessage(java.lang.String message)
          Invoked by the message passer when the other player sends a chat message.
 void updateStatus(int messageNumber, java.lang.String message)
          Invoked by the message passer when status has changed by another players move.
 

Method Detail

updateStatus

void updateStatus(int messageNumber,
                  java.lang.String message)
                  throws java.rmi.RemoteException
Invoked by the message passer when status has changed by another players move. Message numbers are specified in the protocol.

Parameters:
messageNumber - A protocol message number
message - A message
Throws:
java.rmi.RemoteException
See Also:
Protocol

quit

void quit()
          throws java.rmi.RemoteException
Invoked by the message passer when the other player wants to quit.

Throws:
java.rmi.RemoteException

setChatMessage

void setChatMessage(java.lang.String message)
                    throws java.rmi.RemoteException
Invoked by the message passer when the other player sends a chat message.

Parameters:
message -
Throws:
java.rmi.RemoteException