Exemplo n.º 1
0
 public Node(City city, Disease disease)
 {
     City = city;
     Disease = disease;
     connections = new List<Node>();
     players = new List<Player>();
 }
Exemplo n.º 2
0
        public DiseaseCounter(Disease disease, IEnumerable<NodeDiseaseCounter> nodeCounters, OutbreakCounter outbreakCounter)
        {
            this.nodeCounters = nodeCounters;
            this.outbreakCounter = outbreakCounter;

            Disease = disease;
            Count = 24;

            foreach (NodeDiseaseCounter nodeCounter in nodeCounters)
            {
                nodeCounter.Infected += Infection;
                nodeCounter.ChainInfected += Infection;
                nodeCounter.Treated += Treatment;
                nodeCounter.Outbreak += Outbreak;
                nodeCounter.ChainOutbreak += ChainOutbreak;
            }
        }
 public PreventionEventArgs(Player player, Disease disease, Node node)
 {
     Player = player;
     Disease = disease;
     Node = node;
 }
 internal NodeDiseaseCounter(Disease disease, Node node)
 {
     Disease = disease;
     Node = node;
     Count = 0;
 }