|
|
/*************************************************************************** inventorylist.h - description ------------------- begin : Tue Feb 8 2000 copyright : (C) 2000 by Daniel Roberge email : droberge@uvic.ca ***************************************************************************/ #ifndef INVENTORYLIST_H #define INVENTORYLIST_H #include "inventorynode.h" /**A linear linked list of InventoryItems *@author Daniel Roberge */ class InventoryList { InventoryNode *head; void deleteList(PInventoryNode upto); PInventoryItem recGetItem(int index, PInventoryNode current); public: InventoryList(); ~InventoryList(); void addItem(PInventoryItem newItem); PInventoryItem getItem(int index); int checkItem(InventoryType type); PInventoryItem getItem(InventoryType type); bool isEmpty(); }; typedef InventoryList* PInventoryList; #endif
Generated by: droberge@magebook.localdomain on Mon Jul 3 13:20:08 200. |