Class SecondaryLargeWeaponSlot

  • All Implemented Interfaces:
    IWeaponSlot

    public class SecondaryLargeWeaponSlot
    extends java.lang.Object
    implements IWeaponSlot
    Secondary large weapon slot. When a large weapon is placed in the primary slot, this slot will be occupied as well. If a small weapon is placed only one slot will be occupied.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2017 Created on Aug 16, 2017
    • Constructor Detail

      • SecondaryLargeWeaponSlot

        public SecondaryLargeWeaponSlot()
    • Method Detail

      • combineWithBigSlot

        public void combineWithBigSlot​(PrimaryLargeWeaponSlot primarySlot)
        Assign the secondary slot to a primary slot.
        Parameters:
        primarySlot - which which this slot is combined for large weapons.
      • setWeapon

        public void setWeapon​(IWeapon weapon)
        Place a small weapon in the slot. If null is passed the slot is emptied.
        Specified by:
        setWeapon in interface IWeaponSlot
        Parameters:
        weapon - to be placed.