MCPcopy Create free account
hub / github.com/PCGen/pcgen / processActor

Method processActor

code/src/java/pcgen/io/PCGVer2Parser.java:5804–5821  ·  view source on GitHub ↗
(CNAbility langbonus, Map<PersistentTransitionChoice, CDOMObject> ptcSources, Language l,
		Object actor)

Source from the content-addressed store, hash-verified

5802 }
5803
5804 private void processActor(CNAbility langbonus, Map<PersistentTransitionChoice, CDOMObject> ptcSources, Language l,
5805 Object actor)
5806 {
5807 if (actor instanceof CNAbility)
5808 {
5809 thePC.addSavedAbility(new CNAbilitySelection(langbonus, l.getKeyName()), UserSelection.getInstance(),
5810 UserSelection.getInstance());
5811 }
5812 else if (actor instanceof PersistentTransitionChoice)
5813 {
5814 PersistentTransitionChoice<Language> ptc = (PersistentTransitionChoice<Language>) actor;
5815 ptc.restoreChoice(thePC, ptcSources.get(ptc), l);
5816 }
5817 else
5818 {
5819 warnings.add("Internal Error: Language actor of " + actor.getClass() + " is not understood");
5820 }
5821 }
5822
5823 /**
5824 * Set the source of the domain. See getDomainSource() for details.

Callers 1

processRemovalMethod · 0.95

Calls 6

getInstanceMethod · 0.95
addSavedAbilityMethod · 0.80
getKeyNameMethod · 0.65
restoreChoiceMethod · 0.65
getMethod · 0.65
addMethod · 0.65

Tested by

no test coverage detected