home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 353_02 / items.h < prev    next >
C/C++ Source or Header  |  1992-01-19  |  826b  |  30 lines

  1.           // This stores the items located in each room and also in
  2.           //  the players posession.  It consists of four boolean
  3.           //  variables and methods to use them.
  4.  
  5. #ifndef ITEMS_H
  6. #define ITEMS_H
  7.  
  8. #include "words.h"
  9.  
  10. class items {
  11.  
  12.    int keys_on_hand;      // TRUE if keys are here, otherwise FALSE
  13.    int candy_on_hand;
  14.    int ticket_on_hand;
  15.    int money_on_hand;
  16.  
  17. public:
  18.  
  19.    items(void);            // Constructor, set all to FALSE
  20.    void add_item(word item_to_add);      // Add one item to list
  21.    void drop_item(word item_to_drop);    // Drop one item from list
  22.    int item_here(word item_to_check);    // Returns TRUE or FALSE
  23.    void list_items(void);                // List personal items
  24.    void list_items_in_room(void);        // List location items
  25.  
  26. };
  27.  
  28. #endif
  29.  
  30.