예제 #1
0
파일: Game.cs 프로젝트: EmilieS/Gleipnir
 /// <summary>
 /// Remove created epidemic from the list and destroy it
 /// </summary>
 /// <param name="epidemic"></param>
 internal void EpidemicDestroyed(GodSpell.Epidemic epidemic)
 {
     Debug.Assert(epidemic != null, @"(game, EpidemicDestroyed) Item is null");
     Debug.Assert(_currentEpidemicList.Contains(epidemic), @"(game, EpidemicmDestroyed) Item not in gameitemlist");
     if (epidemic.TimeSinceCreation < 15)
         _faithToBeAddedOrRemovedForAllVillagersThisRound += 20;
     _currentEpidemicList.Remove(epidemic);
     Debug.Assert(!_currentEpidemicList.Contains(epidemic), @"(game, EpidemicDestroyed) Item still in gameitemlist");
 }
예제 #2
0
파일: Game.cs 프로젝트: EmilieS/Gleipnir
 // GodSpells Methods
 /// <summary>
 /// Add created epidemic to epidemic list
 /// </summary>
 /// <param name="epidemic"></param>
 internal void EpidemicCreated(GodSpell.Epidemic epidemic)
 {
     _currentEpidemicList.Add(epidemic);
 }