edu.isi.gamebots.client
Class GamebotsClient.Adapter

java.lang.Object
  |
  +--edu.isi.gamebots.client.GamebotsClient.Adapter
All Implemented Interfaces:
EventListener, GamebotsClient.Listener
Direct Known Subclasses:
BotRunnerApp.TabManager
Enclosing class:
GamebotsClient

public static class GamebotsClient.Adapter
extends Object
implements GamebotsClient.Listener

Simple implementation of a GamebotsClient.Listener.


Constructor Summary
GamebotsClient.Adapter()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GamebotsClient.Adapter

public GamebotsClient.Adapter()
Method Detail

connected

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

Specified by:
connected in interface GamebotsClient.Listener
See Also:
GamebotsClient.Listener.connected()

receivedAsyncMessage

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

Specified by:
receivedAsyncMessage in interface GamebotsClient.Listener
See Also:
GamebotsClient.Listener.receivedAsyncMessage(edu.isi.gamebots.client.Message)

receivedSyncMessage

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

Specified by:
receivedSyncMessage in interface GamebotsClient.Listener
See Also:
GamebotsClient.Listener.receivedSyncMessage(edu.isi.gamebots.client.MessageBlock)

receivedError

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

Specified by:
receivedError in interface GamebotsClient.Listener
See Also:
GamebotsClient.Listener.receivedError(java.lang.Throwable)

disconnected

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

Specified by:
disconnected in interface GamebotsClient.Listener
See Also:
GamebotsClient.Listener.disconnected()