Example #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;
  }
Example #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);
 }