public static bool IsGainingCard(this DefaultPlayerAction playerAction, Card card, GameState gameState) { return(playerAction.purchaseOrder.DoesCardPickerMatch(gameState, card)); }
public static bool HasAtLeast2ToTrashInHand(GameState gameState, DefaultPlayerAction playerAction) { return(CountInHandFrom(playerAction.trashOrder, gameState) >= 2); }
public static bool HasCardToTrashInHand(GameState gameState, DefaultPlayerAction playerAction) { return(HasCardFromInHand(playerAction.trashOrder, gameState)); }
public static bool HasCardToDiscardInHand(GameState gameState, DefaultPlayerAction playerAction) { return(HasCardFromInHand(playerAction.discardOrder, gameState)); }
public PlayerActionFromCardResponses(DefaultPlayerAction playerAction) : base(playerAction) { this.cardResponses = DefaultPlayRules.DefaultResponses.GetCardResponses(playerAction); }