/** * Returns true if this <code>BattleArmor</code> can use a detachable weapon * pack. A <code>BattleArmor</code> must have 2 or more walking MP and be * Medium or heavier to mount DWP. * * @return */ public boolean canMountDWP() { return (getOriginalWalkMP() >= 2) && (getWeightClass() >= EntityWeightClass.WEIGHT_MEDIUM); }
public double getWeightGroundMP() { int walkMP = ba.getOriginalWalkMP(); if (ba.getChassisType() == BattleArmor.CHASSIS_TYPE_QUAD) { walkMP -= QUAD_FREE_MP; } else { walkMP -= BIPED_FREE_MP; } if (walkMP > 0) { return ADDITIONAL_GROUND_MP_WEIGHT[ba.getWeightClass()] * walkMP; } else { return 0; } }
@Override public void setAlphaStrikeMovement(Map<String,Integer> moves) { if (getMovementMode().equals(EntityMovementMode.INF_JUMP)) { moves.put("j", getJumpMP(true, true, true) * 2); } else if (getMovementMode().equals(EntityMovementMode.INF_UMU)) { moves.put("s", getActiveUMUCount() * 2); } else { moves.put(getMovementModeAsBattleForceString(), getOriginalWalkMP() * 2); } }
public boolean correctMovement(StringBuffer buff) { if (ba.getOriginalWalkMP() > ba.getMaximumWalkMP()) { buff.append("Walk MP is " + ba.getOriginalWalkMP() + " but maximum is " + ba.getMaximumWalkMP() + "!"); return false; buff.append("Jump MP is " + ba.getOriginalWalkMP() + " but maximum is " + ba.getMaximumWalkMP() + "!"); return false;
public BattleArmorSuit(BattleArmor ba, int loc, Campaign c) { super((int)ba.getWeight(), c); this.trooper = loc; this.quad = ba.getChassisType() == BattleArmor.CHASSIS_TYPE_QUAD; this.weightClass= ba.getWeightClass(); this.groundMP = ba.getOriginalWalkMP(); this.jumpMP = ba.getOriginalJumpMP(); this.clan = ba.isClan(); this.chassis = ba.getChassis(); this.model = ba.getModel(); this.jumpType = ba.getMovementMode(); this.name = chassis + " " + model + " Suit"; initializeExtraCostsAndTons(); }
public int getWalkMP(boolean gravity, boolean ignoreheat, boolean ignoremodulararmor, boolean ignoreDWP, boolean ignoreMyomerBooster) { int j = getOriginalWalkMP(); if (hasMyomerBooster()) { if (!ignoreMyomerBooster) {
cost += 50000 * getOriginalJumpMP(); cost += 25000 * (getOriginalWalkMP() - 1);