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

Method addAbility

code/src/java/pcgen/core/PlayerCharacter.java:9706–9721  ·  view source on GitHub ↗
(CNAbilitySelection cnas, @SuppressWarnings("UnusedParameters") final Object owner,
						   Object location)

Source from the content-addressed store, hash-verified

9704 }
9705
9706 public void addAbility(CNAbilitySelection cnas, @SuppressWarnings("UnusedParameters") final Object owner,
9707 Object location)
9708 {
9709 //TODO Need to handle owner
9710 if (cnas.hasPrerequisites())
9711 {
9712 conditionalFacet.add(id, cnas, location);
9713 } else
9714 {
9715 directAbilityFacet.add(id, cnas, location);
9716 }
9717 if (!importing)
9718 {
9719 AbilityUtilities.finaliseAbility(this, cnas);
9720 }
9721 }
9722
9723 public void removeAbility(CNAbilitySelection cnas, @SuppressWarnings("UnusedParameters") Object owner,
9724 Object location)

Callers 2

setUpMethod · 0.95
addSavedAbilityMethod · 0.95

Calls 3

finaliseAbilityMethod · 0.95
hasPrerequisitesMethod · 0.65
addMethod · 0.65

Tested by 1

setUpMethod · 0.76