Drives kit selection and adds the selected Kits to the Player Character. Triggered when one of the Facets to which KitChoiceFacet listens fires a DataFacetChangeEvent to indicate a CDOMObject was added to a Player Character. @param dfce The DataFacetChangeEvent containing the informatio
(DataFacetChangeEvent<CharID, CDOMObject> dfce)
| 60 | * change |
| 61 | */ |
| 62 | @Override |
| 63 | public void dataAdded(DataFacetChangeEvent<CharID, CDOMObject> dfce) |
| 64 | { |
| 65 | CharID id = dfce.getCharID(); |
| 66 | PlayerCharacter aPC = trackingFacet.getPC(id); |
| 67 | if (!aPC.isImporting()) |
| 68 | { |
| 69 | CDOMObject cdo = dfce.getCDOMObject(); |
| 70 | for (TransitionChoice<Kit> kit : cdo.getSafeListFor(ListKey.KIT_CHOICE)) |
| 71 | { |
| 72 | kit.act(kit.driveChoice(aPC), cdo, aPC); |
| 73 | } |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * Triggered when one of the Facets to which KitChoiceFacet listens fires a |
nothing calls this directly
no test coverage detected