Ejemplo n.º 1
0
 public BaseEncounterData(
     Encounter encounter,
     IEnumerable <Agent> importantAgents,
     IResultDeterminer resultDeterminer,
     IModeDeterminer modeDeterminer,
     IHealthDeterminer healthDeterminer,
     IReadOnlyList <IPostProcessingStep> processingSteps)
 {
     Targets          = importantAgents.ToList();
     Encounter        = encounter;
     ResultDeterminer = resultDeterminer;
     ModeDeterminer   = modeDeterminer;
     HealthDeterminer = healthDeterminer;
     ProcessingSteps  = processingSteps;
 }
Ejemplo n.º 2
0
 public EncounterIdentifierBuilder(
     Encounter defaultEncounter,
     List <Agent> defaultTargets,
     IResultDeterminer defaultResultDeterminer,
     IModeDeterminer defaultModeDeterminer,
     IHealthDeterminer defaultHealthDeterminer,
     IEnumerable <IPostProcessingStep> defaultProcessingSteps = null
     )
 {
     Encounter        = defaultEncounter;
     Targets          = defaultTargets ?? throw new ArgumentNullException(nameof(defaultTargets));
     ResultDeterminer = defaultResultDeterminer ?? throw new ArgumentNullException(nameof(defaultResultDeterminer));
     ModeDeterminer   = defaultModeDeterminer ?? throw new ArgumentNullException(nameof(defaultModeDeterminer));
     HealthDeterminer = defaultHealthDeterminer ?? throw new ArgumentNullException(nameof(defaultHealthDeterminer));
     ProcessingSteps  = (defaultProcessingSteps ?? Enumerable.Empty <IPostProcessingStep>()).ToList();
 }
Ejemplo n.º 3
0
 public EncounterIdentifierBuilder WithHealth(IHealthDeterminer determiner)
 {
     HealthDeterminer = determiner;
     return(this);
 }