(int roomNum)
| 29 | private int roomNum; |
| 30 | |
| 31 | public Room(int roomNum) throws IOException |
| 32 | { |
| 33 | this.roomNum = roomNum; |
| 34 | |
| 35 | globalClient = new GlobalClient(); |
| 36 | |
| 37 | //int port = Constants.PUBLIC_ROOM_PORT+roomNum; |
| 38 | gameServer = new RemoteGraphServer(globalClient); |
| 39 | int port = gameServer.getPort(); |
| 40 | |
| 41 | new Thread(gameServer).start(); |
| 42 | |
| 43 | globalClient.joinGlobalServer(Constants.GLOBAL_IP, Constants.GLOBAL_PORT, Constants.DUMMY_NAME); |
| 44 | globalClient.createRoom("Public Room "+roomNum, port); |
| 45 | } |
| 46 | |
| 47 | public int getNumCLients() |
| 48 | { |
nothing calls this directly
no test coverage detected