Class: InvI (of Obj)

The InvI class is used for inventory items.

Properties

  • said
  • description
  • owner
  • view
  • loop
  • cel
  • script

Methods

  • void showSelf()

    Prints the inventory item's name and view in a dialog window. If the description property is set, it displays that as well.

  • bool saidMe()

    Returns TRUE is the user's input "Said" the name of the inventory item. Otherwise, FALSE.

  • bool ownedBy(heapPtr anObject)

    Returns TRUE if the inventory item is owned by anObject. Otherwise, FALSE.

  • heapPtr moveTo(heapPtr newOwner)

    Sets the inventory item's owner to newOwner and returns a pointer to itself.

  • void changeState(number newState)

    If the script property is set, it changes the script's state to newState.