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

Method getGlobalPlayers

src/Graphwar/GlobalClient.java:129–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127 }
128
129 public String[] getGlobalPlayers()
130 {
131 String[] names;
132 int i=0;
133
134 synchronized(players)
135 {
136 names = new String[this.players.size()];
137
138 ListIterator<LobbyPlayer> itr = players.listIterator();
139
140 while(itr.hasNext())
141 {
142 LobbyPlayer player = itr.next();
143
144 if(player.getName().equals("SERVERPEWPEW")==false)
145 {
146 names[i] = player.getName();
147 i++;
148 }
149 }
150 }
151
152 names = Arrays.copyOf(names, i);
153
154 return names;
155 }
156
157 public boolean isRoomInvalid()
158 {

Callers 2

resizeMethod · 0.80
paintComponentMethod · 0.80

Calls 1

getNameMethod · 0.95

Tested by

no test coverage detected