Exemplo n.º 1
0
    /// <summary>
    /// Begin the combat action(s).
    /// </summary>
    public void Begin()
    {
        ExperienceManager manager = new ExperienceManager();

        _awardedExperience = 0;

        // iterate over all defenders
        foreach (var defender in _defenders)
        {
            // Give out XP
            _awardedExperience += manager.AwardCombatExperience(_attacker, defender);
        }
    }