(PlayerCharacter pc, Converter<Domain, R> c)
| 85 | } |
| 86 | |
| 87 | @Override |
| 88 | public <R> Collection<R> getCollection(PlayerCharacter pc, Converter<Domain, R> c) |
| 89 | { |
| 90 | HashSet<R> returnSet = new HashSet<>(); |
| 91 | Deity deity = (Deity) ChannelUtilities |
| 92 | .readControlledChannel(pc.getCharID(), CControl.DEITYINPUT); |
| 93 | if (deity == null) |
| 94 | { |
| 95 | return returnSet; |
| 96 | } |
| 97 | CDOMReference<DomainList> list = Deity.DOMAINLIST; |
| 98 | Collection<CDOMReference<Domain>> mods = deity.getListMods(list); |
| 99 | for (CDOMReference<Domain> ref : mods) |
| 100 | { |
| 101 | Collection<AssociatedPrereqObject> assoc = deity.getListAssociations(list, ref); |
| 102 | for (AssociatedPrereqObject apo : assoc) |
| 103 | { |
| 104 | if (PrereqHandler.passesAll(apo, pc, deity)) |
| 105 | { |
| 106 | returnSet.addAll(c.convert(ref)); |
| 107 | break; |
| 108 | } |
| 109 | } |
| 110 | } |
| 111 | return returnSet; |
| 112 | } |
| 113 | } |
nothing calls this directly
no test coverage detected