private void setupMediumLaser() { Mockito.when(mockWeaponType.getHeat()).thenReturn(3); Mockito.when(mockWeaponType.getDamage()).thenReturn(5); Mockito.when(mockWeaponType.getShortRange()).thenReturn(3); Mockito.when(mockWeaponType.getMediumRange()).thenReturn(6); Mockito.when(mockWeaponType.getLongRange()).thenReturn(9); Mockito.when(mockWeapon.getDesc()).thenReturn("Medium Laser"); }
private void setupPPC() { Mockito.when(mockWeaponType.getHeat()).thenReturn(10); Mockito.when(mockWeaponType.getDamage()).thenReturn(10); Mockito.when(mockWeaponType.getShortRange()).thenReturn(6); Mockito.when(mockWeaponType.getMediumRange()).thenReturn(12); Mockito.when(mockWeaponType.getLongRange()).thenReturn(18); Mockito.when(mockWeapon.getDesc()).thenReturn("PPC"); }
private void setupCGR() { Mockito.when(mockWeaponType.getHeat()).thenReturn(1); Mockito.when(mockWeaponType.getDamage()).thenReturn(15); Mockito.when(mockWeaponType.getShortRange()).thenReturn(7); Mockito.when(mockWeaponType.getMediumRange()).thenReturn(15); Mockito.when(mockWeaponType.getLongRange()).thenReturn(22); Mockito.when(mockWeapon.getDesc()).thenReturn("Gauss Rifle (C)"); }
int shortR = wtype.getShortRange(); int mediumR = wtype.getMediumRange(); int longR = wtype.getLongRange();
return wp.getHeat(); case COL_SHORT: return wp.getShortRange(); case COL_MED: return wp.getMediumRange();
if (nRange <= wtype.getShortRange()) { nHitsModifier += 2; } else if (nRange > wtype.getMediumRange()) {
range_brackets[RANGE_SHORT] = weapon.getShortRange(); range_brackets[RANGE_MEDIUM] = weapon.getMediumRange(); range_brackets[RANGE_LONG] = weapon.getLongRange();
specialAbilities.merge(BattleForceSPA.MHQ, 10, Integer::sum); if (weapon.getShortRange() < 5) { specialAbilities.put(BattleForceSPA.LTAG, null); } else {
raw_damage_array[0] = wt.getDamage(wt.getShortRange()); raw_damage_array[1] = wt.getDamage(wt.getShortRange()); raw_damage_array[2] = wt.getDamage(wt.getMediumRange()); raw_damage_array[3] = wt.getDamage(wt.getLongRange());
int sRange = getShortRange(); int mRange = getMediumRange(); int lRange = getLongRange();
int distance = attacker.getPosition().distance( target.getPosition()); if (distance <= wt.getShortRange()) { fHits *= 1.2; } else if (distance > wt.getMediumRange()) {