Advertisement
s1ay3r44

ItemEngine

Nov 18th, 2011
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. class Item
  2. {
  3.     public:
  4.         int Price, Value;
  5.         string Name, Description;
  6.         virtual void Effect() =0;
  7. };
  8.  
  9. class Medicine : public Item
  10. {
  11.     public:
  12.         void Effect();
  13.         Medicine();
  14. };
  15.  
  16. class DCD : public Item
  17. {
  18.     public:
  19.         void Effect();
  20.         DCD();
  21. };
  22.  
  23. class BlueLobster : public Item
  24. {
  25.     public:
  26.         void Effect();//Turn player into lobster and summon a lobster army to damage all enemies
  27.         BlueLobster();
  28. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement