Advertisement
czlowiekzgon

gang h

Nov 28th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. #pragma once
  2. #include "Boss.h"
  3. #include "Underboss.h"
  4.  
  5. class Gang{
  6. private:
  7. Boss *ptrBoss = nullptr;
  8. int sizeBoss;
  9. int sizeProperty;
  10. int sizeUndeboss;
  11. Underboss * ptrUnderboss=nullptr;
  12.  
  13. class Property {
  14. private:
  15. string city;
  16. string street;
  17. int valueProperty;
  18. public:
  19. Property();
  20. ~Property();
  21. void initProperty();
  22. void show()const;
  23.  
  24. };
  25.  
  26. class Money{
  27. private:
  28. int ammountMoney;
  29. public:
  30. Money();
  31. ~Money();
  32. void show()const;
  33. void initMoney();
  34. };
  35.  
  36.  
  37. Property * ptrProperty = nullptr;
  38. Money money;
  39.  
  40.  
  41. public:
  42. Gang();
  43. ~Gang();
  44. void initGang();
  45. //void addBoss(int where);
  46. void show()const;
  47. void removeUnderboss(int where);
  48. int getSizeBoss()const;
  49. Boss * getPtrBoss()const;
  50.  
  51. void killBoss();
  52.  
  53. Gang & operator=(const Gang & g);
  54. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement