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

Method totalValue

code/src/java/pcgen/core/PlayerCharacter.java:5571–5581  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5569 }
5570
5571 public BigDecimal totalValue()
5572 {
5573 BigDecimal totalValue = BigDecimal.ZERO;
5574
5575 for (Equipment eq : getEquipmentMasterList())
5576 {
5577 totalValue = totalValue.add(eq.getCost(this).multiply(BigDecimal.valueOf(eq.qty())));
5578 }
5579
5580 return totalValue;
5581 }
5582
5583 /**
5584 * @return true if character is currently being read from file.

Callers 4

initForCharacterMethod · 0.80
updateWealthFieldsMethod · 0.80
refreshEquipmentMethod · 0.80
getValueTokenMethod · 0.80

Calls 6

qtyMethod · 0.80
addMethod · 0.65
getCostMethod · 0.65
multiplyMethod · 0.45
valueOfMethod · 0.45

Tested by

no test coverage detected