public BigNukeCharge( BigNukeLauncher parent, Color color, double x, double y, double dx, double dy, double angle, int explosionAge) { super( color, x, y, dx + Util.getGameplayRandomGenerator().nextDouble() * 14 * Math.cos(angle), dy - Util.getGameplayRandomGenerator().nextDouble() * 14 * Math.sin(angle)); this.parent = parent; ax = Util.getGameplayRandomGenerator().nextDouble() * 0.1 - 0.05; ay = Util.getGameplayRandomGenerator().nextDouble() * 0.1 - 0.05; this.explosionAge = explosionAge; contractionAge = (int) (explosionAge * (1.2 + Util.getGameplayRandomGenerator().nextDouble() * 0.3)); numChainReactionCharges = (int) (0.114 * (parent.getBonusValue(parent.BONUS_CHAINREACTIONCHANCE).getValue() + Util.getGameplayRandomGenerator().nextInt(10))); }