From aa61f62dcf8023838c169fa4ce7d72e581727506 Mon Sep 17 00:00:00 2001 From: "PSpeed42@gmail.com" Date: Wed, 16 Mar 2011 18:55:52 +0000 Subject: [PATCH] Just renaming some vars to be more inline with what they are. Makes it easier to find calls to Client. git-svn-id: http://jmonkeyengine.googlecode.com/svn/trunk@7002 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/network/sync/ServerSyncService.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/engine/src/networking/com/jme3/network/sync/ServerSyncService.java b/engine/src/networking/com/jme3/network/sync/ServerSyncService.java index a6f616235..c1d5e39b9 100644 --- a/engine/src/networking/com/jme3/network/sync/ServerSyncService.java +++ b/engine/src/networking/com/jme3/network/sync/ServerSyncService.java @@ -153,8 +153,8 @@ public class ServerSyncService extends ConnectionAdapter implements Service { } @Override - public void clientConnected(Client id){ - System.out.println("Server: Client connected: " + id); + public void clientConnected(Client client){ + System.out.println("Server: Client connected: " + client); SyncMessage msg = new SyncMessage(); msg.setReliable(true); // sending INIT information, has to be reliable. @@ -169,7 +169,7 @@ public class ServerSyncService extends ConnectionAdapter implements Service { } try { - id.send(msg); + client.send(msg); } catch (IOException ex) { ex.printStackTrace(); } @@ -177,8 +177,8 @@ public class ServerSyncService extends ConnectionAdapter implements Service { } @Override - public void clientDisconnected(Client id){ - System.out.println("Server: Client disconnected: " + id); + public void clientDisconnected(Client client){ + System.out.println("Server: Client disconnected: " + client); } private void sendDelayedMessages(){ @@ -191,9 +191,9 @@ public class ServerSyncService extends ConnectionAdapter implements Service { if (packetDropRate > FastMath.nextRandomFloat()) continue; - for (Client id : server.getConnectors()){ + for (Client client : server.getConnectors()){ try { - id.send(entry.getValue()); + client.send(entry.getValue()); } catch (IOException ex) { ex.printStackTrace(); } @@ -237,9 +237,9 @@ public class ServerSyncService extends ConnectionAdapter implements Service { long timeToSend = System.currentTimeMillis() + latencyTime; latencyQueue.put(timeToSend, msg); }else{ - for (Client id : server.getConnectors()){ + for (Client client : server.getConnectors()){ try { - id.send(msg); // unreliable + client.send(msg); // unreliable } catch (IOException ex) { ex.printStackTrace(); } -- 2.11.0