Пример #1
0
    void KillingBlow(Unit u)
    {
        Qbert q = GetStats(u);

        if (q != null)
        {
            q.killingBlows++;
        }
    }
Пример #2
0
    void TallyDamage(Unit source, Unit target, int damage)
    {
        Qbert q  = GetStats(source);
        Qbert qt = GetStats(target);

        if (q != null)
        {
            q.damageDone += damage;
        }
        if (qt != null)
        {
            qt.damageSuffered += damage;
        }
    }
Пример #3
0
    void TallyFights(Unit source, Unit target)
    {
        Qbert q  = GetStats(source);
        Qbert qt = GetStats(target);

        if (q != null)
        {
            q.attack++;
        }
        if (qt != null)
        {
            qt.defend++;
        }
    }