Dominion.PlayerActionWithSelf.ChooseBetween C# (CSharp) Method

ChooseBetween() public method

public ChooseBetween ( GameState gameState, IsValidChoice acceptableChoice ) : PlayerActionChoice
gameState GameState
acceptableChoice IsValidChoice
return PlayerActionChoice
        public PlayerActionChoice ChooseBetween(GameState gameState, IsValidChoice acceptableChoice)
        {
            var saved = gameState.self;
            gameState.self = this.self;
            var result = this.playerAction.ChooseBetween(gameState, acceptableChoice);
            gameState.self = saved;
            return result;
        }