MCPcopy Create free account
hub / github.com/catabriga/graphwar / Room

Method Room

src/RoomServer/Room.java:31–45  ·  view source on GitHub ↗
(int roomNum)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

startMethod · 0.80
getPortMethod · 0.45
joinGlobalServerMethod · 0.45
createRoomMethod · 0.45

Tested by

no test coverage detected