public OutbreakEventArgs(NodeDiseaseCounter originCounter)
 {
     OriginCounter = originCounter;
     OriginList = new List<NodeDiseaseCounter>(){originCounter};
     AffectedCities = new List<NodeDiseaseCounter>();
     ChainCities = new List<NodeDiseaseCounter>();
 }
Ejemplo n.º 2
0
 public TreatedEventArgs(NodeDiseaseCounter nodeDiseaseCounter, Player treater, int value)
 {
     NodeDiseaseCounter = nodeDiseaseCounter;
     Treater = treater;
     Value = value;
 }
Ejemplo n.º 3
0
 internal void SubcribeToNodeDiseaseCounter(NodeDiseaseCounter ndc)
 {
     ndc.Outbreak += Outbreak;
     ndc.ChainOutbreak += Outbreak;
 }
Ejemplo n.º 4
0
 public InfectionCard(NodeDiseaseCounter nodeDiseaseCounter)
 {
     this.nodeDiseaseCounter = nodeDiseaseCounter;
 }
 public NodeDiseaseCounterViewModel(NodeDiseaseCounter nodeDiseaseCounter, Notifier notifier)
 {
     this.nodeDiseaseCounter = nodeDiseaseCounter;
     notifier.SubscribeToViewModel(this);
 }
Ejemplo n.º 6
0
 private IEnumerable<NodeDiseaseCounter> GetNodeDiseaseCounter(IEnumerable<Node> nodes, IEnumerable<Disease> diseases, OutbreakCounter outbreakCounter)
 {
     List<NodeDiseaseCounter> nodeDiseaseCounters = new List<NodeDiseaseCounter>();
     foreach (Disease disease in diseases)
     {
         foreach (Node node in nodes)
         {
             NodeDiseaseCounter ndc = new NodeDiseaseCounter(disease, node);
             nodeDiseaseCounters.Add(ndc);
             outbreakCounter.SubcribeToNodeDiseaseCounter(ndc);
         }
     }
     return nodeDiseaseCounters;
 }
 public InfectionEventArgs(NodeDiseaseCounter nodeDiseaseCounter, int value)
 {
     NodeDiseaseCounter = nodeDiseaseCounter;
     Value = value;
 }