private List <byte> GetSelectedCardValues() { List <byte> selectedCardValues = new List <byte>(); List <byte> playerBooks = gameDataManager.PlayerBooks(currentTurnPlayer); List <byte> hiddenBooks = gameDataManager.PlayerHiddenBooks(currentTurnPlayer); if (selectedCards.Count == 0 && currentTurnPlayer.isFinishedHandCards()) { selectedCardValues.AddRange(playerBooks); } if (selectedCards.Count == 0 && playerBooks.Count == 0 && currentTurnPlayer.isFinishedDisplayingBooks()) { List <byte> playerCards = gameDataManager.PlayerCards(currentTurnPlayer); selectedCardValues.AddRange(hiddenBooks); } foreach (Card card in selectedCards) { selectedCardValues.Add(card.Value); } return(selectedCardValues); }
public void CheckPlayersBooks() { List <byte> playerCardValues = gameDataManager.PlayerCards(localPlayer); localPlayer.SetCardValues(playerCardValues); playerCardValues = gameDataManager.PlayerCards(remotePlayer); remotePlayer.SetCardValues(playerCardValues); }
public void CheckPlayersBooks() { List <byte> playerCardValues = gameDataManager.PlayerCards(localPlayer); localPlayer.SetCardValues(playerCardValues); PlayerShowBooksIfNecessary(localPlayer); playerCardValues = gameDataManager.PlayerCards(remotePlayer[0]); remotePlayer[0].SetCardValues(playerCardValues); PlayerShowBooksIfNecessary(remotePlayer[0]); playerCardValues = gameDataManager.PlayerCards(remotePlayer[1]); remotePlayer[1].SetCardValues(playerCardValues); PlayerShowBooksIfNecessary(remotePlayer[1]); playerCardValues = gameDataManager.PlayerCards(remotePlayer[2]); remotePlayer[2].SetCardValues(playerCardValues); PlayerShowBooksIfNecessary(remotePlayer[2]); }