/// <summary> /// /// </summary> /// <param name="finder"></param> public BucketTeamChooser( IPlayerFinder finder ) { if ( finder != null ) Finder = finder; else { Finder = new SimplePlayerFinder(); } }
/// <summary> /// /// </summary> /// <param name="divider"></param> /// <param name="finder"></param> public SimpleTeamChooser( ITeamDivider divider, IPlayerFinder finder ) { if ( divider != null ) Divider = divider; else { //Create a default team divider Divider = new SimpleTeamDivider(); } if ( finder != null ) Finder = finder; else { //Create a default player finder Finder = new SimplePlayerFinder(); } }
/// <summary> /// /// </summary> /// <param name="divider"></param> /// <param name="finder"></param> public SeededTeamChooser( ITeamDivider divider, IPlayerFinder finder ) { MaxElo = 2800; MinElo = 0; if ( divider != null ) Divider = divider; else { //Create a default team divider Divider = new SimpleTeamDivider(); } if ( finder != null ) Finder = finder; else { //Create a default player finder Finder = new SimplePlayerFinder(); } }