Advertisement
baadgeorge

Untitled

Apr 19th, 2021
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. #pragma once
  2. class Location
  3. {
  4. protected:
  5. int X;
  6. int Y;
  7. public:
  8. Location(int _X, int _Y);
  9. ~Location();
  10. int GetX();
  11. int GetY();
  12. };
  13.  
  14. class Point : public Location
  15. {
  16. protected:
  17. bool isVisible;
  18.  
  19. public:
  20. Point(int _X, int _Y);
  21. ~Point();
  22.  
  23. virtual void Show();
  24. virtual void Hide();
  25.  
  26. void MoveTo(int NewX, int NewY);
  27. void Drag(int Step);
  28. };
  29.  
  30. class Grinder : public Point
  31. {
  32. protected:
  33. int Scale;
  34. public:
  35. Grinder(int _X, int _Y, int _Scale);
  36. ~Grinder();
  37.  
  38. virtual void Show();
  39. virtual void Hide();
  40.  
  41. void ChangeSize(int delta);
  42.  
  43. };
  44.  
  45. class Rock : public Point
  46. {
  47. protected:
  48. int Scale;
  49. public:
  50. Rock();
  51. Rock(int _X, int _Y, int Scale);
  52. ~Rock();
  53.  
  54. virtual void Show();
  55. virtual void Hide();
  56.  
  57.  
  58. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement