Class: Inv (of Set)

The Inv class handles the inventory. It contains the inventory items and

Properties

  • elements
  • size
  • carrying
  • empty

Methods

  • void init()

    Sets the global variable gInv to the Inv object.

  • void showSelf(heapPtr theOwner)

    Displays a dialog listing the inventory items owned by theOwner.

  • bool saidMe()

    Checks if any of the inventory item names have been said. If any have, it returns TRUE, otherwise, FALSE.

  • bool ownedBy(heapPtr anObject)

    Checks if any of the inventory items are owned by anObject. If any are, it returns TRUE, otherwise, FALSE.