(final PCClass otherClass)
| 1213 | * CONSIDER Why does this not inherit classSkillChoices? |
| 1214 | */ |
| 1215 | public void inheritAttributesFrom(final PCClass otherClass) |
| 1216 | { |
| 1217 | Boolean hbss = otherClass.get(ObjectKey.HAS_BONUS_SPELL_STAT); |
| 1218 | if (hbss != null) |
| 1219 | { |
| 1220 | put(ObjectKey.HAS_BONUS_SPELL_STAT, hbss); |
| 1221 | CDOMSingleRef<PCStat> bss = otherClass.get(ObjectKey.BONUS_SPELL_STAT); |
| 1222 | if (bss != null) |
| 1223 | { |
| 1224 | put(ObjectKey.BONUS_SPELL_STAT, bss); |
| 1225 | } |
| 1226 | } |
| 1227 | |
| 1228 | Boolean usbs = otherClass.get(ObjectKey.USE_SPELL_SPELL_STAT); |
| 1229 | if (usbs != null) |
| 1230 | { |
| 1231 | put(ObjectKey.USE_SPELL_SPELL_STAT, usbs); |
| 1232 | } |
| 1233 | Boolean cwss = otherClass.get(ObjectKey.CASTER_WITHOUT_SPELL_STAT); |
| 1234 | if (cwss != null) |
| 1235 | { |
| 1236 | put(ObjectKey.CASTER_WITHOUT_SPELL_STAT, cwss); |
| 1237 | } |
| 1238 | CDOMSingleRef<PCStat> ss = otherClass.get(ObjectKey.SPELL_STAT); |
| 1239 | if (ss != null) |
| 1240 | { |
| 1241 | put(ObjectKey.SPELL_STAT, ss); |
| 1242 | } |
| 1243 | |
| 1244 | TransitionChoice<CDOMListObject<Spell>> slc = otherClass.get(ObjectKey.SPELLLIST_CHOICE); |
| 1245 | if (slc != null) |
| 1246 | { |
| 1247 | put(ObjectKey.SPELLLIST_CHOICE, slc); |
| 1248 | } |
| 1249 | |
| 1250 | List<QualifiedObject<CDOMReference<Equipment>>> e = otherClass.getListFor(ListKey.EQUIPMENT); |
| 1251 | if (e != null) |
| 1252 | { |
| 1253 | addAllToListFor(ListKey.EQUIPMENT, e); |
| 1254 | } |
| 1255 | |
| 1256 | List<WeaponProfProvider> wp = otherClass.getListFor(ListKey.WEAPONPROF); |
| 1257 | if (wp != null) |
| 1258 | { |
| 1259 | addAllToListFor(ListKey.WEAPONPROF, wp); |
| 1260 | } |
| 1261 | QualifiedObject<Boolean> otherWP = otherClass.get(ObjectKey.HAS_DEITY_WEAPONPROF); |
| 1262 | if (otherWP != null) |
| 1263 | { |
| 1264 | put(ObjectKey.HAS_DEITY_WEAPONPROF, otherWP); |
| 1265 | } |
| 1266 | |
| 1267 | List<ArmorProfProvider> ap = otherClass.getListFor(ListKey.AUTO_ARMORPROF); |
| 1268 | if (ap != null) |
| 1269 | { |
| 1270 | addAllToListFor(ListKey.AUTO_ARMORPROF, ap); |
| 1271 | } |
| 1272 |
no test coverage detected