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