Modified the client state messages to include the chat

instance in case we add a multi-client test.
cleanup_build_scripts
Paul Speed 9 years ago
parent 9e80d8a7aa
commit 38fe771ed8
  1. 6
      jme3-examples/src/main/java/jme3test/network/TestChatClient.java

@ -93,6 +93,8 @@ public class TestChatClient extends JFrame {
client.addMessageListener(new ChatHandler(), ChatMessage.class);
client.addClientStateListener(new ChatClientStateListener());
client.start();
System.out.println("Started client:" + client);
}
@Override
@ -158,12 +160,12 @@ public class TestChatClient extends JFrame {
@Override
public void clientConnected(Client c) {
System.out.println("clientConnected()");
System.out.println("clientConnected(" + c + ")");
}
@Override
public void clientDisconnected(Client c, DisconnectInfo info) {
System.out.println("clientDisconnected()");
System.out.println("clientDisconnected(" + c + ")");
}
}

Loading…
Cancel
Save