Пример #1
0
 private IEquipmentItem addEquipmentObjectFor(
     IEquipmentTemplate template, MagicalMaterial material) {
   IEquipmentItem item = createItem(template, material);
   equipmentItems.add(item);
   announceItemAndListenForChanges(item);
   return item;
 }
Пример #2
0
 @Override
 public void removeItem(IEquipmentItem item) {
   equipmentItems.remove(item);
   announce().itemRemoved(item);
   item.removeChangeListener(itemChangePropagator);
   fireModelChanged();
 }
Пример #3
0
 @Override
 public IEquipmentItem[] getEquipmentItems() {
   return equipmentItems.asArray();
 }