MCPcopy Create free account
hub / github.com/PCGen/pcgen / getBaseWeight

Method getBaseWeight

code/src/java/pcgen/core/Equipment.java:2105–2112  ·  view source on GitHub ↗

get base weight as double @return base weight (as a double)

()

Source from the content-addressed store, hash-verified

2103 * @return base weight (as a double)
2104 */
2105 private BigDecimal getBaseWeight()
2106 {
2107 if (this.isVirtual())
2108 {
2109 return BigDecimal.ZERO;
2110 }
2111 return getWeightInPounds().add(getSafe(ObjectKey.WEIGHT_MOD));
2112 }
2113
2114 /**
2115 * Get the weight as a double

Callers 2

Calls 4

isVirtualMethod · 0.95
getWeightInPoundsMethod · 0.95
getSafeMethod · 0.80
addMethod · 0.65

Tested by

no test coverage detected