public List<Player> getPlayers() { List<Player> players = new java.util.ArrayList<Player>(); for (ServerClientThread t : this.players) players.add(t.getPlayer()); return players; }
public void removePlayer(ServerClientThread player) { players.remove(player); for (actor.Actor a : actors) if (a.getId().getPlayerId() == player.getPlayer().getPlayerId()) actors.remove(a); }