Entity
is required to make PSRs to avoid falling.
*/
public boolean canFall(boolean gyroLegDamage) {
return false;
@@ -14553,7 +14557,7 @@ public void setTargetBay(int tb) {
* Convenience method that checks whether a bit is set in the entity type field.
*
* @param flag An ETYPE_* value
- * @return true if getEntityType() has the flag set
+ * @return true if getEntityType() has the flag set
*/
public boolean hasETypeFlag(long flag) {
return (getEntityType() & flag) == flag;
@@ -14671,7 +14675,7 @@ public int damageSystem(int type, int slot, int loc, int hits) {
m = getEquipment(slot);
}
if (((type == CriticalSlot.TYPE_SYSTEM) && (cs.getIndex() == slot))
- || ((type == CriticalSlot.TYPE_EQUIPMENT)
+ || ((type == CriticalSlot.TYPE_EQUIPMENT)
&& (m.equals(cs.getMount()) || m.equals(cs.getMount2())))) {
if (nhits < hits) {
cs.setHit(true);
@@ -14747,8 +14751,8 @@ public int getMaxWeaponRange(boolean targetIsAirborne) {
range = WeaponType.AIRBORNE_WEAPON_RANGES[type.getMaxRange(weapon)] * rangeMultiplier;
} else {
range = (game.getOptions().booleanOption(
- OptionsConstants.ADVCOMBAT_TACOPS_RANGE) ? type.getExtremeRange()
- : type.getLongRange());
+ OptionsConstants.ADVCOMBAT_TACOPS_RANGE) ? type.getExtremeRange()
+ : type.getLongRange());
}
if (range > maxRange) {
@@ -14813,7 +14817,7 @@ public int getASEWAffected() {
public boolean hasActivatedRadicalHS() {
for (MiscMounted m : getMisc()) {
if (m.getType().hasFlag(MiscType.F_RADICAL_HEATSINK)
- && m.curMode().equals("On")) {
+ && m.curMode().equals("On")) {
return true;
}
}
@@ -15523,10 +15527,10 @@ public boolean isWeaponBlockedByTowing(int loc, int secondaryFacing, boolean isR
return true;
} else if (!hitch.getRearMounted() && (loc == Tank.LOC_FRONT ||
((loc == Tank.LOC_TURRET
- || loc == Tank.LOC_TURRET_2
- || loc == SuperHeavyTank.LOC_TURRET
- || loc == SuperHeavyTank.LOC_TURRET_2)
- && (secondaryFacing == getFacing())))) {
+ || loc == Tank.LOC_TURRET_2
+ || loc == SuperHeavyTank.LOC_TURRET
+ || loc == SuperHeavyTank.LOC_TURRET_2)
+ && (secondaryFacing == getFacing())))) {
return true;
}
}
@@ -15571,6 +15575,7 @@ public int modifyPhysicalDamageForMeleeSpecialist() {
}
// Getters and setters for sensor contacts and firing solutions. Currently, only used in space combat
+
/**
* Retrieves the IDs of all entities that this entity has detected with sensors
* @return the contents of this entity's sensorContacts set
@@ -15887,9 +15892,9 @@ public MPBoosters getMPBoosters(boolean onlyArmed) {
boolean hasMASC = false;
boolean hasSupercharger = false;
for (MiscMounted m : getMisc()) {
- if (!m.isInoperable() && m.getType().hasFlag(MiscType.F_MASC) ) {
+ if (!m.isInoperable() && m.getType().hasFlag(MiscType.F_MASC)) {
// Supercharger is a subtype of MASC in MiscType
- if ( m.getType().hasSubType(MiscType.S_SUPERCHARGER)) {
+ if (m.getType().hasSubType(MiscType.S_SUPERCHARGER)) {
hasSupercharger = !onlyArmed || m.curMode().equals("Armed");
} else {
hasMASC = !onlyArmed || m.curMode().equals("Armed");
@@ -15941,7 +15946,8 @@ public boolean hasMulId() {
* other CASE types are already present on a location.
* This method does nothing by default and must be overridden for unit types that get Clan CASE. */ - public void addClanCase() { } + public void addClanCase() { + } /** @return True for unit types that have an automatic external searchlight (Meks and Tanks). */ public boolean getsAutoExternalSearchlight() { @@ -16053,9 +16059,9 @@ public boolean countForStrengthSum() { /** @return True if the unit should use Edge based on the current options and assigned Edge points */ public boolean shouldUseEdge(String option) { - return (game.getOptions().booleanOption(OptionsConstants.EDGE) - && getCrew() != null - && getCrew().hasEdgeRemaining() - && getCrew().getOptions().booleanOption(option)); + return (game.getOptions().booleanOption(OptionsConstants.EDGE) + && getCrew() != null + && getCrew().hasEdgeRemaining() + && getCrew().getOptions().booleanOption(option)); } } \ No newline at end of file diff --git a/megamek/src/megamek/common/pathfinder/AbstractPathFinder.java b/megamek/src/megamek/common/pathfinder/AbstractPathFinder.java index 4058d022762..de9078b3320 100644 --- a/megamek/src/megamek/common/pathfinder/AbstractPathFinder.java +++ b/megamek/src/megamek/common/pathfinder/AbstractPathFinder.java @@ -26,7 +26,7 @@ /** * This class provides a skeletal implementation of pathfinder algorithm in a * given directed graph. - * + * * It uses a generalisation of Dijkstra algorithm. User must provide methods * that allow traversing the graph and evaluating paths. All needed methods have * been encapsulated and separated in classes: @@ -40,9 +40,9 @@ *