Inventory Class Reference

Class to manage the inventory. More...

List of all members.

Low Level Methods

bool ContainsItem (string item)
 Check if the inventory contains the specified item.
bool ContainsItem (Window item)
 Check if the inventory contains the specified item.
InventoryItem GetItem (string item)
 Get the specified item object.
InventoryItem GetItem (Window item)
 Get the specified item object.
string GetText (string section)
 Returns the specified text as defined in the inventory text file of the current language.

Detailed Description

Class to manage the inventory.


Member Function Documentation

bool Inventory::ContainsItem ( string  item)

Check if the inventory contains the specified item.

Parameters:
itemString holding the name of the item to check for.
Returns:
  • true if the inventory contains the specified item.
  • false if the inventory does not contain the specified item.
bool Inventory::ContainsItem ( Window  item)

Check if the inventory contains the specified item.

Parameters:
itemWindow representing the item to check for.
Returns:
  • true if the inventory contains the specified item.
  • false if the inventory does not contain the specified item.
InventoryItem Inventory::GetItem ( string  item)

Get the specified item object.

Parameters:
itemString holding the name of the desired item.
Returns:
the desired item if it exists, otherwise null
InventoryItem Inventory::GetItem ( Window  item)

Get the specified item object.

Parameters:
itemWindow representing the desired item.
Returns:
the desired item if it exists, otherwise null
string Inventory::GetText ( string  section)

Returns the specified text as defined in the inventory text file of the current language.

Parameters:
sectionString holding the name of a section declaration in the inventory text file.