Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.67 KB | None | 0 0
  1. #include <string>
  2. using namespace std;
  3. #include "globals.h"
  4.  
  5. class Item
  6. {
  7. public:
  8.     void SetPrice(int NewPrice);
  9.  
  10. // private:
  11.     Item();
  12.     ~Item();
  13.  
  14.     int m_iPrice;
  15. };
  16.  
  17. /* *** Weapons *** */
  18.  
  19. class Weapon : Item
  20. {
  21. public:
  22.     void ChangeDurability(int ChangeBy);
  23.  
  24. // private:
  25.     Weapon();
  26.     ~Weapon();
  27.  
  28.     int m_iDamage;
  29.     int m_iDurability;
  30. };
  31.  
  32. class Knife : Weapon
  33. {
  34. private:
  35.     Knife();
  36.     ~Knife();
  37.  
  38.     int sharpness;
  39.     int spiky;
  40. };
  41.  
  42. class Sword : Weapon, Knife
  43. {
  44. private:
  45.     Sword();
  46.     ~Sword();
  47.  
  48.     int m_iStrength;
  49. };
  50.  
  51. /* ***  Other Stuff *** */
  52.  
  53. class SweetKitty
  54. {
  55. private:
  56.     SweetKitty();
  57.     ~SweetKitty();
  58.  
  59.     string KittysName;
  60.     int smoothiness;
  61. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement