コード例 #1
0
ファイル: Dracula.cs プロジェクト: UncleGus/dracula
 public void DiscardEventsDownTo(GameState g, int numberOfCards, UserInterface ui)
 {
     while (EventCardsInHand.Count() > numberOfCards)
     {
         EventDetail cardToDiscard = logic.DecideWhichEventToDiscard(g, this);
         EventCardsInHand.Remove(cardToDiscard);
         g.AddEventToEventDiscard(cardToDiscard);
         Logger.WriteToDebugLog("Dracula discarded " + cardToDiscard.name);
         Logger.WriteToGameLog("Dracula discarded " + cardToDiscard.name);
         ui.TellUser("Dracula discarded " + cardToDiscard.name);
     }
 }