use of pcgen.cdom.base.ChooseSelectionActor in project pcgen by PCGen.
the class AbilitySelectionToken method restoreChoice.
@Override
public void restoreChoice(PlayerCharacter pc, ChooseDriver owner, AbilitySelection choice) {
pc.addAssoc(owner, getListKey(), choice);
List<ChooseSelectionActor<?>> actors = owner.getActors();
if (actors != null) {
for (ChooseSelectionActor ca : actors) {
ca.applyChoice(owner, choice, pc);
}
}
}
use of pcgen.cdom.base.ChooseSelectionActor in project pcgen by PCGen.
the class AbilityToken method removeChoice.
@Override
public void removeChoice(PlayerCharacter pc, ChooseDriver owner, Ability choice) {
pc.removeAssoc(owner, getListKey(), choice);
List<ChooseSelectionActor<?>> actors = owner.getActors();
if (actors != null) {
for (ChooseSelectionActor ca : actors) {
ca.removeChoice(owner, choice, pc);
}
}
}
use of pcgen.cdom.base.ChooseSelectionActor in project pcgen by PCGen.
the class SpellLevelToken method restoreChoice.
@Override
public void restoreChoice(PlayerCharacter pc, ChooseDriver owner, SpellLevel choice) {
pc.addAssoc(owner, getListKey(), choice);
List<ChooseSelectionActor<?>> actors = owner.getActors();
if (actors != null) {
for (ChooseSelectionActor ca : actors) {
ca.applyChoice(owner, choice, pc);
}
}
}
use of pcgen.cdom.base.ChooseSelectionActor in project pcgen by PCGen.
the class StringToken method restoreChoice.
@Override
public void restoreChoice(PlayerCharacter pc, ChooseDriver owner, String choice) {
pc.addAssoc(owner, getListKey(), choice);
List<ChooseSelectionActor<?>> actors = owner.getActors();
if (actors != null) {
for (ChooseSelectionActor ca : actors) {
applyChoice(owner, choice, pc, ca);
}
}
}
use of pcgen.cdom.base.ChooseSelectionActor in project pcgen by PCGen.
the class StringToken method removeChoice.
@Override
public void removeChoice(PlayerCharacter pc, ChooseDriver owner, String choice) {
pc.removeAssoc(owner, getListKey(), choice);
List<ChooseSelectionActor<?>> actors = owner.getActors();
if (actors != null) {
for (ChooseSelectionActor ca : actors) {
ca.removeChoice(owner, choice, pc);
}
}
}
Aggregations