(final PlayerCharacter aPC)
| 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 |
no test coverage detected