public OutbreakEventArgs(NodeDiseaseCounter originCounter) { OriginCounter = originCounter; OriginList = new List<NodeDiseaseCounter>(){originCounter}; AffectedCities = new List<NodeDiseaseCounter>(); ChainCities = new List<NodeDiseaseCounter>(); }
public TreatedEventArgs(NodeDiseaseCounter nodeDiseaseCounter, Player treater, int value) { NodeDiseaseCounter = nodeDiseaseCounter; Treater = treater; Value = value; }
internal void SubcribeToNodeDiseaseCounter(NodeDiseaseCounter ndc) { ndc.Outbreak += Outbreak; ndc.ChainOutbreak += Outbreak; }
public InfectionCard(NodeDiseaseCounter nodeDiseaseCounter) { this.nodeDiseaseCounter = nodeDiseaseCounter; }
public NodeDiseaseCounterViewModel(NodeDiseaseCounter nodeDiseaseCounter, Notifier notifier) { this.nodeDiseaseCounter = nodeDiseaseCounter; notifier.SubscribeToViewModel(this); }
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; }