Exemple #1
0
        private bool IsCompletable(Character character)
        {
            // see if the current resources the character posesses are sufficient to reach the goal
            // for now, this will be: are all the books available to the character sufficient?
            double runningTotal = 0;
            foreach (Ability ability in _abilities)
            {
                runningTotal += character.GetAbilityMaximumFromReading(ability);
            }

            return runningTotal >= _total;
        }