Class to manage the inventory. More...
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. |
Class to manage the inventory.
bool Inventory::ContainsItem | ( | string | item | ) |
Check if the inventory contains the specified item.
item | String holding the name of the item to check for. |
bool Inventory::ContainsItem | ( | Window | item | ) |
Check if the inventory contains the specified item.
item | Window representing the item to check for. |
InventoryItem Inventory::GetItem | ( | string | item | ) |
Get the specified item object.
item | String holding the name of the desired item. |
InventoryItem Inventory::GetItem | ( | Window | item | ) |
Get the specified item object.
item | Window representing the desired item. |
string Inventory::GetText | ( | string | section | ) |
Returns the specified text as defined in the inventory text file of the current language.
section | String holding the name of a section declaration in the inventory text file. |