public override bool CanRespond(ActivityModel activity, GameViewModel state)
 {
     return(base.CanRespond(activity, state) &&
            (activity.ParseHint() == ActivityHint.PassCards || activity.ParseHint() == ActivityHint.TrashCards));
 }
 public override bool CanRespond(ActivityModel activity, GameViewModel state)
 {
     return base.CanRespond(activity, state) && 
         (activity.ParseHint() == ActivityHint.DiscardCards || activity.ParseHint() == ActivityHint.RedrawCards);
 }
 public virtual bool CanRespond(ActivityModel activity, GameViewModel state)
 {
     return activity.ParseType() == ActivityType.SelectUpToNumberOfCards
            && activity.ParseHint() == ActivityHint.TrashCards;
 }
 public bool CanRespond(ActivityModel activity, GameViewModel state)
 {
     return(base.CanRespond(activity, state) &&
            activity.ParseHint() == ActivityHint.PlayCards &&
            state.Hand.Select(c => c.Name).Intersect(AISupportedActions.All).Any());
 }
Exemplo n.º 5
0
 public virtual bool CanRespond(ActivityModel activity, GameViewModel state)
 {
     return(activity.ParseType() == ActivityType.SelectUpToNumberOfCards &&
            activity.ParseHint() == ActivityHint.TrashCards);
 }
 public bool CanRespond(ActivityModel activity, GameViewModel state)
 {
     return base.CanRespond(activity, state)
            && activity.ParseHint() == ActivityHint.PlayCards
            && state.Hand.Select(c => c.Name).Intersect(AISupportedActions.All).Any();
 }
 public override bool CanRespond(ActivityModel activity, GameViewModel state)
 {
     return base.CanRespond(activity, state) && 
         (activity.ParseHint() == ActivityHint.PassCards || activity.ParseHint() == ActivityHint.TrashCards);
 }