diff options
Diffstat (limited to 'include/bag.h')
-rw-r--r-- | include/bag.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/include/bag.h b/include/bag.h index 00adbe58..14735443 100644 --- a/include/bag.h +++ b/include/bag.h @@ -43,24 +43,24 @@ void Sav2_Bag_init(struct Bag * bag); void Sav2_Bag_copy(const struct Bag * src, struct Bag * dest); u32 Bag_GetRegisteredItem(struct Bag * bag); void Bag_SetRegisteredItem(struct Bag * bag, u32 item); -u32 GetItemPocket(struct Bag * bag, u16 item_id, struct ItemSlot ** slot_p, u32 * count_p, u32 heap_id); -struct ItemSlot * BagGetItemSlotForAddInternal(struct ItemSlot * slots, u32 count, u16 item_id, u16 quantity, u16 maxquantity); -struct ItemSlot * PocketGetItemSlotForAdd(struct Bag * bag, u16 item_id, u16 quantity, u32 heap_id); -BOOL BagHasSpaceForItem(struct Bag * bag, u16 item_id, u16 quantity, u32 heap_id); -BOOL BagAddItem(struct Bag * bag, u16 item_id, u16 quantity, u32 heap_id); -struct ItemSlot * PocketGetItemSlotForRemove(struct ItemSlot * slots, u32 count, u16 item_id, u16 quantity); -struct ItemSlot * BagGetItemSlotForRemove(struct Bag * bag, u16 item_id, u16 quantity, u32 heap_id); -BOOL BagTakeItem(struct Bag * bag, u16 item_id, u16 quantity, u32 heap_id); -BOOL PocketTakeItem(struct ItemSlot * slots, u32 count, u16 item_id, u16 quantity); -BOOL BagHasItem(struct Bag * bag, u16 item_id, u16 quantity, u32 heap_id); -BOOL BagPocketNotEmpty(struct Bag * bag, u32 pocket); -u16 BagGetQuantity(struct Bag * bag, u16 item_id, u32 heap_id); -u16 PocketGetQuantity(struct ItemSlot * slots, u32 count, u16 item_id); +u32 Bag_GetItemPocket(struct Bag * bag, u16 item_id, struct ItemSlot ** slot_p, u32 * count_p, u32 heap_id); +struct ItemSlot * Pocket_GetItemSlotForAdd(struct ItemSlot * slots, u32 count, u16 item_id, u16 quantity, u16 maxquantity); +struct ItemSlot * Bag_GetItemSlotForAdd(struct Bag * bag, u16 item_id, u16 quantity, u32 heap_id); +BOOL Bag_HasSpaceForItem(struct Bag * bag, u16 item_id, u16 quantity, u32 heap_id); +BOOL Bag_AddItem(struct Bag * bag, u16 item_id, u16 quantity, u32 heap_id); +struct ItemSlot * Pocket_GetItemSlotForRemove(struct ItemSlot * slots, u32 count, u16 item_id, u16 quantity); +struct ItemSlot * Bag_GetItemSlotForRemove(struct Bag * bag, u16 item_id, u16 quantity, u32 heap_id); +BOOL Bag_TakeItem(struct Bag * bag, u16 item_id, u16 quantity, u32 heap_id); +BOOL Pocket_TakeItem(struct ItemSlot * slots, u32 count, u16 item_id, u16 quantity); +BOOL Bag_HasItem(struct Bag * bag, u16 item_id, u16 quantity, u32 heap_id); +BOOL Bag_PocketNotEmpty(struct Bag * bag, u32 pocket); +u16 Bag_GetQuantity(struct Bag * bag, u16 item_id, u32 heap_id); +u16 Pocket_GetQuantity(struct ItemSlot * slots, u32 count, u16 item_id); void SwapItemSlots(struct ItemSlot * a, struct ItemSlot * b); void PocketCompaction(struct ItemSlot * slots, u32 count); void SortPocket(struct ItemSlot * slots, u32 count); struct BagView * CreateBagView(struct Bag * bag, const u8 * pockets, u32 heap_id); -struct ItemSlot * BagGetPocketSlotN(struct Bag * bag, u32 pocket, u32 slot); +struct ItemSlot * Bag_GetPocketSlotN(struct Bag * bag, u32 pocket, u32 slot); struct Bag * Sav2_Bag_get(struct SaveBlock2 * sav2); struct UnkStruct_0206F164 * FUN_0206F164(u32 heap_id); void FUN_0206F17C(struct UnkStruct_0206F164 * a0, u32 a1, u8 * a2, u8 * a3); |