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

Method setIsEquipped

code/src/java/pcgen/core/Equipment.java:1045–1058  ·  view source on GitHub ↗

Sets the isEquipped attribute of the Equipment object. @param aFlag The new isEquipped value @param aPC The PC with the Equipment

(final boolean aFlag, final PlayerCharacter aPC)

Source from the content-addressed store, hash-verified

1043 * The PC with the Equipment
1044 */
1045 public void setIsEquipped(final boolean aFlag, final PlayerCharacter aPC)
1046 {
1047
1048 equipped = aFlag;
1049
1050 if (equipped)
1051 {
1052 activateBonuses(aPC);
1053 }
1054 else
1055 {
1056 BonusActivation.deactivateBonuses(this, aPC);
1057 }
1058 }
1059
1060 /**
1061 * Get the item name based off the modifiers

Callers 15

testTypeMethod · 0.95
testWieldMethod · 0.95
testTypeMethod · 0.95
testWieldMethod · 0.95
testNotEquippedMethod · 0.95
testTypeMethod · 0.95
testWieldMethod · 0.95
testTypeMethod · 0.95

Calls 2

activateBonusesMethod · 0.95
deactivateBonusesMethod · 0.95

Tested by 15

testTypeMethod · 0.76
testWieldMethod · 0.76
testTypeMethod · 0.76
testWieldMethod · 0.76
testNotEquippedMethod · 0.76
testTypeMethod · 0.76
testWieldMethod · 0.76
testTypeMethod · 0.76