RequestPlayerPlayActionFromHand() private method

private RequestPlayerPlayActionFromHand ( GameState gameState, CardPredicate acceptableCard, bool isOptional ) : bool
gameState GameState
acceptableCard CardPredicate
isOptional bool
return bool
Esempio n. 1
0
 public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState)
 {
     // may play another cultist from hand.
     currentPlayer.RequestPlayerPlayActionFromHand(gameState, card => card == Cultist.card, isOptional: true);
 }
Esempio n. 2
0
        private void DoActionPhase(PlayerState currentPlayer)
        {
            currentPlayer.playPhase = PlayPhase.Action;
            while (currentPlayer.AvailableActions > 0)
            {
                currentPlayer.turnCounters.RemoveAction();

                if (!currentPlayer.RequestPlayerPlayActionFromHand(this, Delegates.IsActionCardPredicate, isOptional: true))
                {
                    break;
                }
            }
        }