コード例 #1
0
 private void SetupAuctionCards()
 {
     foreach (AnimalTypes animalType in Enum.GetValues(typeof(AnimalTypes)))
     {
         for (int x = 0; x < 4; x++)
         {
             RemainingAuctionCards.Add(animalType);
         }
     }
 }
コード例 #2
0
 private void KickPlayer(Player player)
 {
     if (Players.Count > 1)
     {
         DetermineNewCurrentPlayer(player);
         CurrentState = States.ChooseAction;
         Players.Remove(player);
         foreach (AnimalTypes card in player.AnimalCards)
         {
             RemainingAuctionCards.Add(card);
         }
         AddCompensationMoneyCardsToPlayers();
     }
 }