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

Method getSkillPool

code/src/java/pcgen/core/PCClass.java:288–314  ·  view source on GitHub ↗
(final PlayerCharacter aPC)

Source from the content-addressed store, hash-verified

286 * PCLevelInfo altogether?
287 */
288 public final int getSkillPool(final PlayerCharacter aPC)
289 {
290 int returnValue = 0;
291 // //////////////////////////////////
292 // Using this method will return skills for level 0 even when there is
293 // no information
294 // Byngl - December 28, 2004
295 // for (int i = 0; i <= level; i++)
296 // {
297 // final PCLevelInfo pcl = aPC.getLevelInfoFor(getKeyName(), i);
298 //
299 // if ((pcl != null) && pcl.getClassKeyName().equals(getKeyName()))
300 // {
301 // returnValue += pcl.getSkillPointsRemaining();
302 // }
303 // }
304 for (PCLevelInfo pcl : aPC.getLevelInfo())
305 {
306 if (pcl.getClassKeyName().equals(getKeyName()))
307 {
308 returnValue += pcl.getSkillPointsRemaining();
309 }
310 }
311 // //////////////////////////////////
312
313 return returnValue;
314 }
315
316 /*
317 * FINALPCCLASSANDLEVEL This is required in PCClassLevel and should be present in

Callers 7

getUnusedSkillPointsMethod · 0.95
addLevelMethod · 0.45
subLevelMethod · 0.45
modRanksMethod · 0.45
addRanksMethod · 0.45
appendClassLinesMethod · 0.45

Calls 5

getClassKeyNameMethod · 0.80
equalsMethod · 0.65
getKeyNameMethod · 0.65
getLevelInfoMethod · 0.45

Tested by

no test coverage detected