| Package | org.wak.inventory |
| Class | public class InventoryItem |
| Inheritance | InventoryItem flash.display.Sprite |
| Implements | IInteractable |
| Property | Defined by | ||
|---|---|---|---|
| defaultAction : String [read-only]
The default action to apply on this Interactable
| InventoryItem | ||
| description : String [read-only]
The item description
| InventoryItem | ||
| guiItemDisplay : Sprite [read-only]
The DisplayObject which represents this item on the interface on SCI gui.
| InventoryItem | ||
| interactableId : String [read-only]
id of this interactable entity
| InventoryItem | ||
| interactionName : String [read-only]
A text with the name for gui purposes.
| InventoryItem | ||
| itemDisplay : Sprite [read-only]
The DisplayObject which represents this item on the interface.
| InventoryItem | ||
| itemIconDisplay : DisplayObject [read-only]
The DisplayObject icon which represents this item on the interface.
| InventoryItem | ||
| unitaryUse : Boolean
If the item is true for unitary use in the scumm style adventures, the action Use
will be ready only when the player try Use with this interactable without wait a
second parameter.
| InventoryItem | ||
| Property | Defined by | ||
|---|---|---|---|
| mDescription : String = "" | InventoryItem | ||
| mItemDisplay : Sprite = null | InventoryItem | ||
| mItemId : String = "" | InventoryItem | ||
| mItemMouseIcon : DisplayObject = null | InventoryItem | ||
| mItemName : String = "" | InventoryItem | ||
| mItemPanelIconCopy : Sprite = null | InventoryItem | ||
| mResources : Class = null | InventoryItem | ||
| mUnitaryUse : Boolean = false | InventoryItem | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructor
| InventoryItem | ||
| defaultAction | property |
defaultAction:String [read-only]The default action to apply on this Interactable
Implementation public function get defaultAction():String
| description | property |
description:String [read-only]The item description
Implementation public function get description():String
| guiItemDisplay | property |
guiItemDisplay:Sprite [read-only]The DisplayObject which represents this item on the interface on SCI gui.
Implementation public function get guiItemDisplay():Sprite
| interactableId | property |
interactableId:String [read-only]id of this interactable entity
Implementation public function get interactableId():String
| interactionName | property |
interactionName:String [read-only]A text with the name for gui purposes.
Implementation public function get interactionName():String
| itemDisplay | property |
itemDisplay:Sprite [read-only]The DisplayObject which represents this item on the interface.
Implementation public function get itemDisplay():Sprite
| itemIconDisplay | property |
itemIconDisplay:DisplayObject [read-only]The DisplayObject icon which represents this item on the interface.
Implementation public function get itemIconDisplay():DisplayObject
| mDescription | property |
protected var mDescription:String = ""
| mItemDisplay | property |
protected var mItemDisplay:Sprite = null
| mItemId | property |
protected var mItemId:String = ""
| mItemMouseIcon | property |
protected var mItemMouseIcon:DisplayObject = null
| mItemName | property |
protected var mItemName:String = ""
| mItemPanelIconCopy | property |
protected var mItemPanelIconCopy:Sprite = null
| mResources | property |
protected var mResources:Class = null
| mUnitaryUse | property |
protected var mUnitaryUse:Boolean = false
| unitaryUse | property |
unitaryUse:Boolean [read-write]If the item is true for unitary use in the scumm style adventures, the action Use will be ready only when the player try Use with this interactable without wait a second parameter.
Implementation public function get unitaryUse():Boolean
public function set unitaryUse(value:Boolean):void
| InventoryItem | () | constructor |
public function InventoryItem(pDef:IInventoryItemDefinition)Constructor
ParameterspDef:IInventoryItemDefinition — Definition of the inventory item
|