Esempio n. 1
0
 void restoreItemInBackpack( Item* item,
                             int inventoryPosX,
                             int inventoryPosY,
                             size_t stackSize )
 {
   InventoryItem* invItem = new InventoryItem( item,
                                               inventoryPosX,
                                               inventoryPosY,
                                               Globals::getPlayer() );
   invItem->setCurrentStackSize( stackSize );
   Globals::getPlayer()->getInventory()->insertItemWithExchangeAt( invItem,
                                                                   inventoryPosX,
                                                                   inventoryPosY );
 }