001 package breakout; 002 003 /** 004 * interface Connector implementations connect the local instance 005 * of the breakout game to a remote instance of the breakout game. 006 * Your connector should have a constructor that takes two Worlds 007 * (top board, bottom board) and a NetworkSettings object. 008 * 009 * @see breakout.NetworkSettings 010 * @see breakout.StudentConnector 011 * 012 * @author benmv@olin.edu 013 * @version <tt>$Id: Connector.java,v 1.2 2004/03/26 20:39:33 gus Exp $</tt> 014 */ 015 public interface Connector { 016 017 /** 018 * The connector implementation should attempt to connect 019 * to the other party. No exceptions should be thrown, but 020 * isConnected should continue to return false in the case of 021 * failure. Calling connect() while already connected should 022 * do nothing. 023 */ 024 public void connect(); 025 026 /** 027 * returns true if the connector is connected to the partner 028 * game. 029 * 030 * @return true if connected. 031 */ 032 public boolean isConnected(); 033 034 } 035