Ejemplo n.º 1
0
        public int GetDamage()
        {
            int dmgToDeal = 0;

            dmgToDeal += BaseDamage;

            if (RightHand != null && RightHand.IsOffence())
            {
                dmgToDeal += ((IOffence)RightHand).Damage;
            }
            if (LeftHand != null && LeftHand.IsOffence())
            {
                dmgToDeal += ((IOffence)LeftHand).Damage;
            }

            return(dmgToDeal);
        }