Advertisement
Guest User

header

a guest
Jul 12th, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.97 KB | None | 0 0
  1. #ifndef APOTHECARY_H
  2. #define APOTHECARY_H
  3.  
  4. #include "Potion.h"
  5. #include "main.h"
  6.  
  7. using namespace std;
  8.  
  9. class Apothecary
  10. {
  11. public:
  12.     Apothecary(int oSize, int sSize);
  13.     ~Apothecary();
  14.     Apothecary(const Apothecary& NewApo);
  15.     Apothecary& operator=(Apothecary& NewApo);
  16.  
  17.     bool OrderPotion(PotionType aType);
  18.     int  MakePotions();
  19.     bool BuyPotion(Potion& potion);
  20.  
  21.     void SetOrderSize(int);
  22.     void SetShelfSize(int);
  23.     void SetTop(int);
  24.     void SetRear(int);
  25.     void SetFront(int);
  26.  
  27.     int  GetOrderSize();
  28.     int  GetShelfSize();
  29.  
  30.     bool IsOrderEmpty() const;
  31.     bool IsOrderFull() const;
  32.     void DequeueOrder();
  33.  
  34.     bool IsShelfFull() const;
  35.     bool IsShelfEmpty() const;
  36.     bool PushShelf(PotionType aType);
  37.    
  38.     PotionType PeekOrder() const;
  39.     PotionType PeekShelf() const;
  40.     friend void swap(Apothecary& first, Apothecary& second);
  41.  
  42. private:
  43.     int orderSize;
  44.     int shelfSize;
  45.     int top;
  46.     int rear;
  47.     int front;
  48.    
  49.     PotionType* orderArray;
  50.     PotionType* shelfArray;
  51. };
  52. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement