Exemplo n.º 1
0
  public List<Player> getPlayers() {
    List<Player> players = new java.util.ArrayList<Player>();

    for (ServerClientThread t : this.players) players.add(t.getPlayer());

    return players;
  }
Exemplo n.º 2
0
 public void removePlayer(ServerClientThread player) {
   players.remove(player);
   for (actor.Actor a : actors)
     if (a.getId().getPlayerId() == player.getPlayer().getPlayerId()) actors.remove(a);
 }