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

Method getSkillList

code/src/java/pcgen/io/exporttoken/SkillToken.java:157–170  ·  view source on GitHub ↗
(PlayerCharacter pc)

Source from the content-addressed store, hash-verified

155 }
156
157 private synchronized List<Skill> getSkillList(PlayerCharacter pc)
158 {
159 if (pc == lastPC && pc.getSerial() == lastPCSerial)
160 {
161 return cachedSkillList;
162 }
163
164 final List<Skill> pcSkills =
165 SkillDisplay.getSkillListInOutputOrder(pc, pc.getDisplay().getPartialSkillList(View.VISIBLE_EXPORT));
166 cachedSkillList = pcSkills;
167 lastPC = pc;
168 lastPCSerial = pc.getSerial();
169 return pcSkills;
170 }
171
172 /**
173 * Given the source of the token, split it up into its skill id and

Callers 1

getSkillMethod · 0.95

Calls 4

getPartialSkillListMethod · 0.80
getSerialMethod · 0.45
getDisplayMethod · 0.45

Tested by

no test coverage detected