Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • JSONTemplate
    • Inventory

Implements

  • IInventory

Index

Constructors

constructor

  • new Inventory(emu: IMemory, log: ILogger): Inventory

Properties

Private emulator

emulator: IMemory

Private instance

instance: number = ...

Private inventory_addr

inventory_addr: number = ...

Private inventory_ammo_addr

inventory_ammo_addr: number = ...

Private inventory_upgrades_addr

inventory_upgrades_addr: number = ...

jsonFields

jsonFields: string[] = ...

Private log

log: ILogger

Accessors

adultTradeItem

  • get adultTradeItem(): InventoryItem
  • set adultTradeItem(item: InventoryItem): void

arrows

  • get arrows(): number
  • set arrows(count: number): void

bombBag

  • get bombBag(): AmmoUpgrade
  • set bombBag(bb: AmmoUpgrade): void

bombchuCount

  • get bombchuCount(): number
  • set bombchuCount(count: number): void

bombchus

  • get bombchus(): boolean
  • set bombchus(bool: boolean): void

bombs

  • get bombs(): boolean
  • set bombs(bool: boolean): void

bombsCount

  • get bombsCount(): number
  • set bombsCount(count: number): void

boomerang

  • get boomerang(): boolean
  • set boomerang(bool: boolean): void

bottle_1

  • get bottle_1(): InventoryItem
  • set bottle_1(content: InventoryItem): void

bottle_2

  • get bottle_2(): InventoryItem
  • set bottle_2(content: InventoryItem): void

bottle_3

  • get bottle_3(): InventoryItem
  • set bottle_3(content: InventoryItem): void

bottle_4

  • get bottle_4(): InventoryItem
  • set bottle_4(content: InventoryItem): void

bulletBag

  • get bulletBag(): AmmoUpgrade
  • set bulletBag(bb: AmmoUpgrade): void

childTradeItem

  • get childTradeItem(): InventoryItem
  • set childTradeItem(item: InventoryItem): void

dekuNuts

  • get dekuNuts(): boolean
  • set dekuNuts(bool: boolean): void

dekuNutsCapacity

  • get dekuNutsCapacity(): AmmoUpgrade
  • set dekuNutsCapacity(bb: AmmoUpgrade): void

dekuNutsCount

  • get dekuNutsCount(): number
  • set dekuNutsCount(count: number): void

dekuSeeds

  • get dekuSeeds(): number
  • set dekuSeeds(count: number): void

dekuSticks

  • get dekuSticks(): boolean
  • set dekuSticks(bool: boolean): void

dekuSticksCapacity

  • get dekuSticksCapacity(): AmmoUpgrade
  • set dekuSticksCapacity(bb: AmmoUpgrade): void

dekuSticksCount

  • get dekuSticksCount(): number
  • set dekuSticksCount(count: number): void

dinsFire

  • get dinsFire(): boolean
  • set dinsFire(bool: boolean): void

fairyBow

  • get fairyBow(): boolean
  • set fairyBow(bool: boolean): void

fairySlingshot

  • get fairySlingshot(): boolean
  • set fairySlingshot(bool: boolean): void

faroresWind

  • get faroresWind(): boolean
  • set faroresWind(bool: boolean): void

fireArrows

  • get fireArrows(): boolean
  • set fireArrows(bool: boolean): void

hookshot

  • get hookshot(): Hookshot
  • set hookshot(item: Hookshot): void

iceArrows

  • get iceArrows(): boolean
  • set iceArrows(bool: boolean): void

lensOfTruth

  • get lensOfTruth(): boolean
  • set lensOfTruth(bool: boolean): void

lightArrows

  • get lightArrows(): boolean
  • set lightArrows(bool: boolean): void

magicBeans

  • get magicBeans(): boolean
  • set magicBeans(bool: boolean): void

magicBeansCount

  • get magicBeansCount(): number
  • set magicBeansCount(count: number): void

megatonHammer

  • get megatonHammer(): boolean
  • set megatonHammer(bool: boolean): void

nayrusLove

  • get nayrusLove(): boolean
  • set nayrusLove(bool: boolean): void

ocarina

  • get ocarina(): Ocarina
  • set ocarina(item: Ocarina): void

quiver

  • get quiver(): AmmoUpgrade
  • set quiver(q: AmmoUpgrade): void

strength

  • get strength(): Strength
  • set strength(bb: Strength): void

swimming

  • get swimming(): ZoraScale
  • set swimming(bb: ZoraScale): void

wallet

  • get wallet(): Wallet
  • set wallet(w: Wallet): void

Methods

getAmmoForItem

  • getAmmoForItem(item: InventoryItem): number

getAmmoForSlot

  • getAmmoForSlot(slotId: number): number

getBottleCount

  • getBottleCount(): number

getBottledItems

  • getBottledItems(): InventoryItem[]

getEmptySlots

  • getEmptySlots(): number[]

getItemInSlot

  • getItemInSlot(slotId: number): InventoryItem

getMaxRupeeCount

  • getMaxRupeeCount(): number

getSlotForItem

  • getSlotForItem(item: InventoryItem): number

getSlotsForItem

  • getSlotsForItem(item: InventoryItem): number[]

giveItem

  • giveItem(item: InventoryItem, desiredSlot: InventorySlots): void

hasAmmo

  • hasAmmo(item: InventoryItem): boolean

hasBottle

  • hasBottle(): boolean

hasItem

  • hasItem(item: InventoryItem): boolean

isAdultTradeFinished

  • isAdultTradeFinished(): boolean

isChildTradeFinished

  • isChildTradeFinished(): boolean

removeItem

  • removeItem(item: InventoryItem): void

setAmmoInSlot

  • setAmmoInSlot(slot: number, amount: number): void

setItemInSlot

  • setItemInSlot(item: InventoryItem, slot: number): void

toJSON

  • toJSON(): any
  • Returns any

Generated using TypeDoc