use of games.strategy.engine.gamePlayer.IPlayerBridge in project triplea by triplea-game.
the class AbstractGame method setupLocalPlayers.
private void setupLocalPlayers(final Set<IGamePlayer> localPlayers) {
final PlayerList playerList = gameData.getPlayerList();
for (final IGamePlayer gp : localPlayers) {
final PlayerID player = playerList.getPlayerId(gp.getName());
gamePlayers.put(player, gp);
final IPlayerBridge bridge = new DefaultPlayerBridge(this);
gp.initialize(bridge, player);
final RemoteName descriptor = ServerGame.getRemoteName(gp.getPlayerId(), gameData);
remoteMessenger.registerRemote(gp, descriptor);
}
}
Aggregations