/** * indicate whether this is bodymounted for BAs */ public Mounted addEquipment(EquipmentType etype, int loc, boolean rearMounted, int baMountLoc, boolean dwpMounted) throws LocationFullException { Mounted mounted = new Mounted(this, etype); mounted.setBaMountLoc(baMountLoc); mounted.setDWPMounted(dwpMounted); addEquipment(mounted, loc, rearMounted); return mounted; }
m_Manipmounted = entity.addEquipment(manipType, m_Manipmounted.getLocation()); m_Manipmounted.setBaMountLoc(baMountLoc); } catch (LocationFullException ex){
mountedManip = entity.addEquipment(manipType, mountedManip.getLocation()); mountedManip.setBaMountLoc(baMountLoc); } catch (LocationFullException ex){
public Mounted addEquipment(EquipmentType etype, int loc, boolean rearMounted, int baMountLoc, boolean isArmored, boolean isTurreted, boolean isSponsonTurreted, boolean isPintleTurreted, boolean isOmniPodded) throws LocationFullException { Mounted mounted = new Mounted(this, etype); mounted.setArmored(isArmored); mounted.setBaMountLoc(baMountLoc); mounted.setMechTurretMounted(isTurreted); mounted.setSponsonTurretMounted(isSponsonTurreted); mounted.setPintleTurretMounted(isPintleTurreted); mounted.setOmniPodMounted(isOmniPodded); addEquipment(mounted, loc, rearMounted); return mounted; }