コード例 #1
0
 public static bool IsGainingCard(this DefaultPlayerAction playerAction, Card card, GameState gameState)
 {
     return(playerAction.purchaseOrder.DoesCardPickerMatch(gameState, card));
 }
コード例 #2
0
 public static bool HasAtLeast2ToTrashInHand(GameState gameState, DefaultPlayerAction playerAction)
 {
     return(CountInHandFrom(playerAction.trashOrder, gameState) >= 2);
 }
コード例 #3
0
 public static bool HasCardToTrashInHand(GameState gameState, DefaultPlayerAction playerAction)
 {
     return(HasCardFromInHand(playerAction.trashOrder, gameState));
 }
コード例 #4
0
 public static bool HasCardToDiscardInHand(GameState gameState, DefaultPlayerAction playerAction)
 {
     return(HasCardFromInHand(playerAction.discardOrder, gameState));
 }
コード例 #5
0
 public PlayerActionFromCardResponses(DefaultPlayerAction playerAction)
     : base(playerAction)
 {
     this.cardResponses = DefaultPlayRules.DefaultResponses.GetCardResponses(playerAction);
 }