game.getPlayer(connId).setColorIndex(player.getColorIndex()); game.getPlayer(connId).setStartingPos(player.getStartingPos()); game.getPlayer(connId).setTeam(player.getTeam()); game.getPlayer(connId).setCamoFileName(player.getCamoFileName()); game.getPlayer(connId).setNbrMFConventional(player.getNbrMFConventional()); game.getPlayer(connId).setNbrMFCommand(player.getNbrMFCommand()); game.getPlayer(connId).setNbrMFVibra(player.getNbrMFVibra());
Player connPlayer = game.getPlayer( connId ); if ( null != connPlayer ) { connPlayer.setColorIndex(player.getColorIndex()); connPlayer.setStartingPos(player.getStartingPos()); connPlayer.setTeam(player.getTeam()); connPlayer.setCamoFileName(player.getCamoFileName()); connPlayer.setNbrMFConventional(player.getNbrMFConventional()); connPlayer.setNbrMFCommand(player.getNbrMFCommand()); connPlayer.setNbrMFVibra(player.getNbrMFVibra()); }
    private void receivePlayerInfo(Packet packet, int connId) {        Player player = (Player)packet.getObject(0);        game.getPlayer(connId).setColorIndex(player.getColorIndex());        game.getPlayer(connId).setStartingPos(player.getStartingPos());        game.getPlayer(connId).setTeam(player.getTeam());        game.getPlayer(connId).setCamoFileName(player.getCamoFileName());        game.getPlayer(connId).setNbrMFConventional(player.getNbrMFConventional());        game.getPlayer(connId).setNbrMFCommand(player.getNbrMFCommand());        game.getPlayer(connId).setNbrMFVibra(player.getNbrMFVibra());    }