示例#1
0
        public bool MeetsRequirement()
        {
            switch (_cardInfo.State)
            {
            case State.InHand:
                return(_cardInfo.GetFromHandActionTargets().Count >= _fromHandActionInputRequired);

            case State.InPlay:
                return(_cardInfo.GetInPlayActionTargets().Count >= _inPlayActionInputRequired);
            }

            return(false);
        }
        private List <BaseCard> GetValidTargets()
        {
            switch (GatherMode)
            {
            case InputGatherMode.FromHandAction:
                return(_cardInfo.GetFromHandActionTargets());

            case InputGatherMode.InPlayAction:
                return(_cardInfo.GetInPlayActionTargets());

            default:
                throw new ArgumentOutOfRangeException();
            }
        }