Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Shelf.h

Go to the documentation of this file.
00001 #ifndef _SHELF_H_
00002 #define _SHELF_H_
00003 
00004 #include "Inventory.h"
00005 #include "Object.h"
00006 #include "Axe.h"
00007 
00012 class Shelf : public Object
00013 {
00014  public:
00015   Shelf();
00016   virtual ~Shelf();
00017 
00018   void setInventory(Inventory *i) { _inventory = i; }
00019   Inventory *getInventory() { return _inventory; }
00020   void removeInventory() { _inventory = 0; }
00021 
00022   virtual void draw();
00023   bool canHoldInventory() { return _canHoldInventory; }
00024   void setCanHoldInventory(bool t) { _canHoldInventory = t; }
00025 
00026  protected:
00027   Inventory *_inventory;
00028   bool _canHoldInventory;
00029 };
00030 
00031 #endif

Generated on Wed Apr 21 11:10:53 2004 for naturecalls by doxygen1.2.18