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

Method getActiveBonuses

code/src/java/pcgen/core/AgeSet.java:190–208  ·  view source on GitHub ↗
(PlayerCharacter pc)

Source from the content-addressed store, hash-verified

188 }
189
190 @Override
191 public List<BonusObj> getActiveBonuses(PlayerCharacter pc)
192 {
193 if (bonuses == null)
194 {
195 return Collections.emptyList();
196 }
197 List<BonusObj> aList = new ArrayList<>();
198
199 for (BonusObj bo : bonuses)
200 {
201 if (pc.isApplied(bo))
202 {
203 aList.add(bo);
204 }
205 }
206
207 return aList;
208 }
209 /*
210 * End items implementing BonusContainer interface
211 */

Callers

nothing calls this directly

Calls 3

emptyListMethod · 0.80
isAppliedMethod · 0.80
addMethod · 0.65

Tested by

no test coverage detected