Exemple #1
0
        public override bool Matches(IAction action)
        {
            if (action.Action != Activity.Sundry)
            {
                return(false);
            }
            Exposure exposure = (Exposure)action;

            return(exposure.Ability == this.Ability);
        }
Exemple #2
0
        public void TestAging()
        {
            uint runningTally = 0;
            IAction action = new Exposure(new Ability(), 0);

            for (int i = 0; i < 100; i++)
            {
                _character = new Character(null, null, null);

                while (_character.Decrepitude < 75)
                {
                    _character.CommitAction(action);
                }
                Trace.WriteLine("Age at Death: " + _character.SeasonalAge);
                runningTally += _character.SeasonalAge;
            }
            Trace.WriteLine("Average Age at Death: " + runningTally/100);
        }