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

Method ownBonuses

code/src/java/pcgen/cdom/base/CDOMObject.java:1108–1120  ·  view source on GitHub ↗

Set's all the BonusObj's to this creator Hopefully this is a temporary import - thpr Oct 9, 2008 @throws CloneNotSupportedException

(Object owner)

Source from the content-addressed store, hash-verified

1106 * @throws CloneNotSupportedException
1107 */
1108 public void ownBonuses(Object owner) throws CloneNotSupportedException
1109 {
1110 List<BonusObj> bonusList = getListFor(ListKey.BONUS);
1111 if (bonusList != null)
1112 {
1113 removeListFor(ListKey.BONUS);
1114 for (BonusObj orig : bonusList)
1115 {
1116 BonusObj bonus = orig.clone();
1117 addToListFor(ListKey.BONUS, bonus);
1118 }
1119 }
1120 }
1121
1122 /**
1123 * Hopefully this is a temporary import - thpr Oct 11, 2008

Callers 2

cloneMethod · 0.95
setClassLevelMethod · 0.45

Calls 4

getListForMethod · 0.95
removeListForMethod · 0.95
addToListForMethod · 0.95
cloneMethod · 0.45

Tested by

no test coverage detected