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 SetX(int _X);
- void SetY(int _Y);
- void MoveTo(int NewX, int NewY);
- void Drag(int Step);
- };
- class Wheel : public Point
- {
- protected:
- int Radius;
- double Angle;
- public:
- Wheel(int _X, int _Y, int _Radius);
- ~Wheel();
- virtual void Show();
- virtual void Hide();
- void SetAngle(double _Angle);
- double GetAngle();
- //void Rotate();
- };
- class Grinder : public Point
- {
- protected:
- int Scale;
- Wheel wheel;
- public:
- Grinder(int _X, int _Y, int _Scale, double _Angle);
- ~Grinder();
- virtual void Show();
- virtual void Hide();
- void ChangeSize(int delta);
- double GetAngleWH();
- void SetAngleWH(double _Angle);
- };
- class Rock : public Point
- {
- protected:
- int Scale;
- public:
- Rock(int _X, int _Y, int Scale);
- ~Rock();
- virtual void Show();
- virtual void Hide();
- };
- class River : public Point
- {
- protected:
- int Scale;
- public:
- River(int _X, int _Y, int _Scale);
- ~River();
- virtual void Show();
- virtual void Hide();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement