Exemplo n.º 1
0
        internal IWeapon EquipSecondaryWeapon(IWeapon weapon)
        {
            if (weapon == null)
                throw new System.ArgumentException("EquipSecondaryWeapon - Null weapon");

            IWeapon oldWeapon = UnequipSecondaryWeapon();

            m_secondaryWeapon = (Weapon)weapon;
            if (m_secondaryWeapon.IsRanged)
                m_secondaryWeapon.LoadWeapon();

            return oldWeapon;
        }
Exemplo n.º 2
0
        private IWeapon EquipWeapon(IWeapon weapon)
        {
            if (weapon == null)
                throw new System.ArgumentException("EquipWeapon - Null weapon");

            Weapon oldWeapon = UnequipWeapon();

            m_equipedWeapon = (Weapon)weapon;
            if (m_equipedWeapon.IsRanged)
                m_equipedWeapon.LoadWeapon();

            return oldWeapon;
        }