Exemplo n.º 1
0
 void afterUnmarshal(Unmarshaller u, Object parent) {
   wrappedItemData = new TIntObjectHashMap<WrapperItem>();
   for (WrapperItem it : list) {
     wrappedItemData.put(it.getItemId(), it);
   }
   list = null;
 }
Exemplo n.º 2
0
  public TIntIntHashMap rollItems(int wrapperItemId, int playerLevel, ItemRace race) {
    TIntIntHashMap itemCountMap = new TIntIntHashMap();

    final WrapperItem wrapperItem = wrappedItemData.get(wrapperItemId);
    if (wrapperItem == null) return itemCountMap;

    return wrapperItem.rollItems(playerLevel, race);
  }