Exemplo n.º 1
0
        public bool IsNotRestricted()
        {
            if (Story.Restrictions.Count == 0)
            {
                return(true);
            }

            foreach (var restriction in Story.Restrictions)
            {
                var r = new Evaluation(restriction);

                if (!r.CanBePlayedInContext())
                {
                    return(false);
                }
            }

            return(true);
        }
Exemplo n.º 2
0
        private bool IsChoiceShouldBeDisabled()
        {
            var disabled = false;

            foreach (var condition in _choice.Conditions)
            {
                var eval = new Evaluation(condition);

                if (eval.CanBePlayedInContext())
                {
                    continue;
                }

                disabled = true;

                break;
            }

            return(disabled);
        }