Example #1
0
 public Run(IComparisonGeneratorsFactory factory)
 {
     InternalList = new List<ISegment>();
     AttemptHistory = new List<Attempt>();
     Factory = factory;
     ComparisonGenerators = Factory.Create(this).ToList();
     CustomComparisons = new List<string>() { PersonalBestComparisonName };
 }
Example #2
0
 public Run(IComparisonGeneratorsFactory factory)
 {
     InternalList         = new List <ISegment>();
     AttemptHistory       = new List <Attempt>();
     Factory              = factory;
     ComparisonGenerators = Factory.Create(this).ToList();
     CustomComparisons    = new List <string>()
     {
         PersonalBestComparisonName
     };
 }
Example #3
0
 public Run(IEnumerable<ISegment> collection, IComparisonGeneratorsFactory factory)
 {
     InternalList = new List<ISegment>();
     foreach (var x in collection)
     {
         InternalList.Add(x.Clone() as ISegment);
     }
     AttemptHistory = new List<Attempt>();
     Factory = factory;
     ComparisonGenerators = Factory.Create(this).ToList();
     CustomComparisons = new List<string>() { PersonalBestComparisonName };
 }
Example #4
0
 private Run(IEnumerable <ISegment> collection, IComparisonGeneratorsFactory factory, RunMetadata metadata)
 {
     InternalList         = CloneInternallList(collection);
     AttemptHistory       = new List <Attempt>();
     Factory              = factory;
     ComparisonGenerators = Factory.Create(this).ToList();
     CustomComparisons    = new List <string>()
     {
         PersonalBestComparisonName
     };
     Metadata = metadata.Clone(this);
 }
Example #5
0
 public Run(IComparisonGeneratorsFactory factory)
 {
     InternalList         = new List <ISegment>();
     AttemptHistory       = new List <Attempt>();
     Factory              = factory;
     ComparisonGenerators = Factory.Create(this).ToList();
     CustomComparisons    = new List <string>()
     {
         PersonalBestComparisonName
     };
     Metadata          = new RunMetadata(this);
     CurrentDeathCount = 0;
     BestDeathCount    = -1;
 }
Example #6
0
 public Run(IEnumerable <ISegment> collection, IComparisonGeneratorsFactory factory)
 {
     InternalList = new List <ISegment>();
     foreach (var x in collection)
     {
         InternalList.Add(x.Clone() as ISegment);
     }
     AttemptHistory       = new List <Attempt>();
     Factory              = factory;
     ComparisonGenerators = Factory.Create(this).ToList();
     CustomComparisons    = new List <string>()
     {
         PersonalBestComparisonName
     };
 }