Wing 323 - Gamepad Version  V1.0
Public Member Functions | Protected Attributes
InventoryItem Class Reference

A basic inventory item. An inventory can be picked up and placed in the player's inventory for later use in the game. More...

Inheritance diagram for InventoryItem:
Flashlight Gun Keycard

List of all members.

Public Member Functions

void Start ()
 Initialises the inventory item's attributes.
string getItemName ()
 Get's the item's name.
Texture2D getItemImage ()
 Get's the item's image (an image of the inventory item).
string toString ()
 Returns a formatted string of the item's name.

Protected Attributes

string m_itemName
Texture2D m_itemImage

Detailed Description

A basic inventory item. An inventory can be picked up and placed in the player's inventory for later use in the game.

Author:
Alexander Poolton
Version:
2.0
Date:
22/6/2011

Member Function Documentation

Texture2D InventoryItem::getItemImage ( ) [inline]

Get's the item's image (an image of the inventory item).

Returns:
m_itemImage The item's image.
string InventoryItem::getItemName ( ) [inline]

Get's the item's name.

Returns:
m_itemName The item's name.
string InventoryItem::toString ( ) [inline]

Returns a formatted string of the item's name.

Returns:
Returns a formatted toString of the Item's properties.

The documentation for this class was generated from the following file:
 All Classes Functions