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)
| 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 | } |
no test coverage detected