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

Method getLevelInfoFor

code/src/java/pcgen/core/PlayerCharacter.java:3107–3123  ·  view source on GitHub ↗
(final String classKey, int level)

Source from the content-addressed store, hash-verified

3105 }
3106
3107 public PCLevelInfo getLevelInfoFor(final String classKey, int level)
3108 {
3109 for (PCLevelInfo pcl : getLevelInfo())
3110 {
3111 if (pcl.getClassKeyName().equals(classKey))
3112 {
3113 level--;
3114 }
3115
3116 if (level <= 0)
3117 {
3118 return pcl;
3119 }
3120 }
3121
3122 return null;
3123 }
3124
3125 public int getLevelInfoSize()
3126 {

Callers 1

subLevelMethod · 0.80

Calls 3

getLevelInfoMethod · 0.95
getClassKeyNameMethod · 0.80
equalsMethod · 0.65

Tested by

no test coverage detected