コード例 #1
0
 public OutbreakEventArgs(NodeDiseaseCounter originCounter)
 {
     OriginCounter = originCounter;
     OriginList = new List<NodeDiseaseCounter>(){originCounter};
     AffectedCities = new List<NodeDiseaseCounter>();
     ChainCities = new List<NodeDiseaseCounter>();
 }
コード例 #2
0
 public TreatedEventArgs(NodeDiseaseCounter nodeDiseaseCounter, Player treater, int value)
 {
     NodeDiseaseCounter = nodeDiseaseCounter;
     Treater = treater;
     Value = value;
 }
コード例 #3
0
 internal void SubcribeToNodeDiseaseCounter(NodeDiseaseCounter ndc)
 {
     ndc.Outbreak += Outbreak;
     ndc.ChainOutbreak += Outbreak;
 }
コード例 #4
0
 public InfectionCard(NodeDiseaseCounter nodeDiseaseCounter)
 {
     this.nodeDiseaseCounter = nodeDiseaseCounter;
 }
コード例 #5
0
 public NodeDiseaseCounterViewModel(NodeDiseaseCounter nodeDiseaseCounter, Notifier notifier)
 {
     this.nodeDiseaseCounter = nodeDiseaseCounter;
     notifier.SubscribeToViewModel(this);
 }
コード例 #6
0
ファイル: Game.cs プロジェクト: BrandonFitzgibbon/Pandemic
 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;
 }
コード例 #7
0
 public InfectionEventArgs(NodeDiseaseCounter nodeDiseaseCounter, int value)
 {
     NodeDiseaseCounter = nodeDiseaseCounter;
     Value = value;
 }