Breakout Problem Set Javadocs

breakout
Interface Connector


public interface Connector

interface Connector implementations connect the local instance of the breakout game to a remote instance of the breakout game. Your connector should have a constructor that takes two Worlds (top board, bottom board) and a NetworkSettings object.

Version:
$Id: Connector.java,v 1.2 2004/03/26 20:39:33 gus Exp $
Author:
benmv@olin.edu
See Also:
NetworkSettings, breakout.StudentConnector

Method Summary
 void connect()
          The connector implementation should attempt to connect to the other party.
 boolean isConnected()
          returns true if the connector is connected to the partner game.
 

Method Detail

connect

public void connect()
The connector implementation should attempt to connect to the other party. No exceptions should be thrown, but isConnected should continue to return false in the case of failure. Calling connect() while already connected should do nothing.


isConnected

public boolean isConnected()
returns true if the connector is connected to the partner game.

Returns:
true if connected.

Breakout Problem Set Javadocs