edu.isi.gamebots.client
Interface GamebotsClient.Listener

All Superinterfaces:
EventListener
All Known Implementing Classes:
GamebotsClient.Adapter
Enclosing interface:
GamebotsClient

public static interface GamebotsClient.Listener
extends EventListener

Interface for listening to a GamebotsClient.


Method Summary
 void connected()
          Notifies the Listener that the client has been connected to the server.
 void disconnected()
          Notifies the Listener that the client has been disconnected from the server.
 void receivedAsyncMessage(Message message)
          Notifies the Listener of a new asynchronous message.
 void receivedError(Throwable error)
          Notifies the Listener of any error that occured.
 void receivedSyncMessage(MessageBlock message)
          Notifies the Listener of a new synchronous message, also know as a vision block.
 

Method Detail

connected

public void connected()
Notifies the Listener that the client has been connected to the server.


receivedAsyncMessage

public void receivedAsyncMessage(Message message)
Notifies the Listener of a new asynchronous message.


receivedSyncMessage

public void receivedSyncMessage(MessageBlock message)
Notifies the Listener of a new synchronous message, also know as a vision block.


receivedError

public void receivedError(Throwable error)
Notifies the Listener of any error that occured.


disconnected

public void disconnected()
Notifies the Listener that the client has been disconnected from the server.