Class SmallWeaponAmmoType

All Implemented Interfaces:
ITechnology

public class SmallWeaponAmmoType extends AmmoType
Ammo for light and medium weapons used by small support vehicles. These are the same as infantry weapons, but infantry do not track ammo use.
  • Constructor Details

    • SmallWeaponAmmoType

      public SmallWeaponAmmoType(InfantryWeapon weapon)
  • Method Details

    • getBursts

      public int getBursts()
    • isAmmoFor

      public boolean isAmmoFor(EquipmentType weapon)
      Parameters:
      weapon - The weapon to check
      Returns:
      Whether this is the ammo type for the weapon
    • initializeTypes

      public static void initializeTypes()
      Creates a new ammo for each infantry weapon that uses it. This must be called after WeaponType is initialized.