Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- class Location
- {
- protected:
- int X;
- int Y;
- public:
- Location(int _X, int _Y);
- ~Location();
- int GetX();
- int GetY();
- };
- class Point : public Location
- {
- protected:
- bool isVisible;
- public:
- Point(int _X, int _Y);
- ~Point();
- virtual void Show();
- virtual void Hide();
- void MoveTo(int NewX, int NewY);
- void Drag(int Step);
- };
- class Grinder : public Point
- {
- protected:
- int Scale;
- public:
- Grinder(int _X, int _Y, int _Scale);
- ~Grinder();
- virtual void Show();
- virtual void Hide();
- void ChangeSize(int delta);
- };
- class Rock : public Point
- {
- protected:
- int Scale;
- public:
- Rock();
- Rock(int _X, int _Y, int Scale);
- ~Rock();
- virtual void Show();
- virtual void Hide();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement