Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. if(iConnectionsAL.size() > 1 && iConnectionsAL.size() % 2 == 0){
  2.  
  3. System.out.println("Two Connections established");
  4.  
  5. int playerOne = iConnectionsAL.size() - 2;
  6. int playerTwo = iConnectionsAL.size() - 1;
  7.  
  8. //iConnectionsAL.get(playerOne).iDataOutput.writeUTF("CONNECTED$Connected With Player Two");
  9. //iConnectionsAL.get(playerTwo).iDataOutput.writeUTF("CONNECTED$Connected With Player One");
  10.  
  11. QwirkleServer QwirkleServer = new QwirkleServer(Socket, this, iConnectionsAL.get(playerOne), iConnectionsAL.get(playerTwo));
  12. QwirkleServer.start();
  13. iGameConnections.add(QwirkleServer);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement