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

Method getTypes

code/src/java/plugin/pretokens/test/PreTypeTester.java:130–152  ·  view source on GitHub ↗

Get a list of types that apply to this character. @return a List of Strings where each String is a type that the character has. The list returned will never be null @deprecated Use getRaceType() and getRacialSubTypes() instead

(CharacterDisplay display)

Source from the content-addressed store, hash-verified

128 * @deprecated Use getRaceType() and getRacialSubTypes() instead
129 */
130 @Deprecated
131 private static List<String> getTypes(CharacterDisplay display)
132 {
133 final List<String> list = new ArrayList<>();
134
135 Race race = display.getRace();
136 if (race != null)
137 {
138 list.add(race.getType());
139 }
140 else
141 {
142 list.add("Humanoid");
143 }
144
145 for (PCTemplate t : display.getTemplateSet())
146 {
147 list.add(t.getType());
148 }
149
150 return list;
151
152 }
153
154}

Callers 1

passesMethod · 0.95

Calls 4

addMethod · 0.65
getTypeMethod · 0.65
getRaceMethod · 0.45
getTemplateSetMethod · 0.45

Tested by

no test coverage detected