Ejemplo n.º 1
0
 /**
  * Removes Domain Spell Lists (previously) granted to the Player Character due to the Domain
  * removal from a Player Character.
  *
  * <p>Triggered when one of the Facets to which DomainSpellListFacet listens fires a
  * DataFacetChangeEvent to indicate a Domain was removed from a Player Character.
  *
  * @param dfce The DataFacetChangeEvent containing the information about the change
  * @see
  *     pcgen.cdom.facet.DataFacetChangeListener#dataRemoved(pcgen.cdom.facet.DataFacetChangeEvent)
  */
 @Override
 public void dataRemoved(DataFacetChangeEvent<Domain> dfce) {
   spellListFacet.removeAll(dfce.getCharID(), dfce.getSource());
 }
Ejemplo n.º 2
0
 /**
  * Adds Domain Spell Lists granted to the Player Character due to the Domain selections of the
  * Player Character.
  *
  * <p>Triggered when one of the Facets to which DomainSpellListFacet listens fires a
  * DataFacetChangeEvent to indicate a Domain was added to a Player Character.
  *
  * @param dfce The DataFacetChangeEvent containing the information about the change
  * @see pcgen.cdom.facet.DataFacetChangeListener#dataAdded(pcgen.cdom.facet.DataFacetChangeEvent)
  */
 @Override
 public void dataAdded(DataFacetChangeEvent<Domain> dfce) {
   DomainSpellList list = dfce.getCDOMObject().get(ObjectKey.DOMAIN_SPELLLIST);
   // list should never be null??
   spellListFacet.add(dfce.getCharID(), list, dfce.getCDOMObject());
 }