@Override public boolean isNullSigOn() { if (!isShutDown()) { for (Mounted m : getMisc()) { EquipmentType type = m.getType(); if (type.hasFlag(MiscType.F_NULLSIG) && m.curMode().equals("On") && m.isReady()) { return true; } } } return false; }
/** * Does the mech have a functioning void signature system? */ @Override public boolean isVoidSigActive() { // per the rules questions forum, externally mounted BA invalidates Void // Sig if (getLoadedUnits().size() > 0) { return false; } if (!isShutDown()) { for (Mounted m : getMisc()) { EquipmentType type = m.getType(); if (type.hasFlag(MiscType.F_VOIDSIG) && m.curMode().equals("On") && m.isReady()) { return true; } } } return false; }
/** * Does the mech have a functioning void signature system? */ @Override public boolean isVoidSigOn() { if (!isShutDown()) { for (Mounted m : getMisc()) { EquipmentType type = m.getType(); if (type.hasFlag(MiscType.F_VOIDSIG) && m.curMode().equals("On") && m.isReady()) { return true; } } } return false; }
/** * Does the mech have a functioning Chameleon Light Polarization Field? For * a CLPS to be functioning it must be on and the unit can't have mounted * mechanized BattleArmor. */ @Override public boolean isChameleonShieldActive() { // TO pg 300 states that generates heat but doesn't operate if the unit // has mounted BA if (getLoadedUnits().size() > 0) { return false; } if (!isShutDown()) { for (Mounted m : getMisc()) { EquipmentType type = m.getType(); if (type.hasFlag(MiscType.F_CHAMELEON_SHIELD) && m.curMode().equals("On") && m.isReady()) { return true; } } } return false; }
/** * Does the mech Chameleon Light Polarization Field turned on? This is used * for heat generation purposes. A CLPS can be on and generating heat but * not providing any benefit if the unit has mechanized BattleArmor. */ @Override public boolean isChameleonShieldOn() { if (!isShutDown()) { for (Mounted m : getMisc()) { EquipmentType type = m.getType(); if (type.hasFlag(MiscType.F_CHAMELEON_SHIELD) && m.curMode().equals("On") && m.isReady()) { return true; } } } return false; }
Mockito.when(mockMech.getRunMP()).thenReturn(6); Mockito.when(mockMech.isImmobile()).thenReturn(false); Mockito.when(mockMech.isShutDown()).thenReturn(false); Mockito.when(mockMech.isProne()).thenReturn(false); Mockito.when(mockMech.isStuck()).thenReturn(false); Mockito.when(mockMech.isShutDown()).thenReturn(true); Assert.assertFalse(mockPrincess.isImmobilized(mockMech)); Mockito.when(mockMech.isShutDown()).thenReturn(false); Assert.assertTrue(mockPrincess.isImmobilized(mockMech)); Mockito.when(mockMech.isShutDown()).thenReturn(false); Mockito.when(mockMech.isProne()).thenReturn(true); Mockito.when(mockMech.cannotStandUpFromHullDown()).thenReturn(true); Mockito.when(mockMech.isShutDown()).thenReturn(false); Mockito.when(mockMech.isProne()).thenReturn(true); Mockito.when(mockMech.cannotStandUpFromHullDown()).thenReturn(false); Mockito.when(mockMech.isShutDown()).thenReturn(false); Mockito.when(mockMech.isProne()).thenReturn(true); Mockito.when(mockMech.cannotStandUpFromHullDown()).thenReturn(false); Mockito.when(mockMech.isShutDown()).thenReturn(false); Mockito.when(mockMech.isProne()).thenReturn(false); Mockito.when(mockMech.isStuck()).thenReturn(true); Mockito.when(mockMech.isShutDown()).thenReturn(false);
/** * Does the mech have a functioning null signature system, or a void sig * that is acting as a a null sig because of externally carried BA? */ @Override public boolean isNullSigActive() { if (isVoidSigOn() && !isVoidSigActive()) { return true; } if (!isShutDown()) { for (Mounted m : getMisc()) { EquipmentType type = m.getType(); if (type.hasFlag(MiscType.F_NULLSIG) && m.curMode().equals("On") && m.isReady()) { return true; } } } return false; }
if (!isShutDown() && getEngine().isFusion()) { engineCritHeat += 5 * getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_ENGINE, Mech.LOC_CT);