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

Method getActiveBonuses

code/src/java/pcgen/core/PointBuyMethod.java:104–116  ·  view source on GitHub ↗

returns all BonusObj's that are "active" @param pc TODO @return active bonuses

(PlayerCharacter pc)

Source from the content-addressed store, hash-verified

102 * @return active bonuses
103 */
104 @Override
105 public List<BonusObj> getActiveBonuses(PlayerCharacter pc)
106 {
107 final List<BonusObj> aList = new ArrayList<>();
108 for (BonusObj bonus : getBonuses())
109 {
110 if (pc.isApplied(bonus))
111 {
112 aList.add(bonus);
113 }
114 }
115 return aList;
116 }
117
118 /**
119 * Sets all the BonusObj's to "active"

Callers

nothing calls this directly

Calls 3

getBonusesMethod · 0.95
isAppliedMethod · 0.80
addMethod · 0.65

Tested by

no test coverage detected