Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- using namespace std;
- #include "globals.h"
- class Item
- {
- public:
- void SetPrice(int NewPrice);
- // private:
- Item();
- ~Item();
- int m_iPrice;
- };
- /* *** Weapons *** */
- class Weapon : Item
- {
- public:
- void ChangeDurability(int ChangeBy);
- // private:
- Weapon();
- ~Weapon();
- int m_iDamage;
- int m_iDurability;
- };
- class Knife : Weapon
- {
- private:
- Knife();
- ~Knife();
- int sharpness;
- int spiky;
- };
- class Sword : Weapon, Knife
- {
- private:
- Sword();
- ~Sword();
- int m_iStrength;
- };
- /* *** Other Stuff *** */
- class SweetKitty
- {
- private:
- SweetKitty();
- ~SweetKitty();
- string KittysName;
- int smoothiness;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement