VASSAL.build.module
Interface ServerConnection


public interface ServerConnection

Represents the connection to a live server


Field Summary
static java.lang.String CONNECTED
          Name of the property fired when the connection is opened/clused.
 
Method Summary
 void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener l)
           
 boolean isConnected()
           
 void sendToOthers(Command c)
          Send a command to other players on the server
 void setConnected(boolean connect)
           
 

Field Detail

CONNECTED

public static final java.lang.String CONNECTED
Name of the property fired when the connection is opened/clused. Value is Boolean.TRUE or Boolean.FALSE

See Also:
Constant Field Values
Method Detail

sendToOthers

public void sendToOthers(Command c)
Send a command to other players on the server


setConnected

public void setConnected(boolean connect)

isConnected

public boolean isConnected()

addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String propertyName,
                                      java.beans.PropertyChangeListener l)