]> Shamusworld >> Repos - architektonas/blob - src/circle.h
e4b384526a484fc4a5abffaed40bdd68e64511c6
[architektonas] / src / circle.h
1 #ifndef __CIRCLE_H__
2 #define __CIRCLE_H__
3
4 #include "object.h"
5
6 class Circle: public Object
7 {
8         public:
9                 Circle(Vector, double, Object * p = 0);
10                 ~Circle();
11
12                 virtual void Draw(QPainter *);
13                 virtual Vector Center(void);
14                 virtual bool Collided(Vector);
15                 virtual void PointerMoved(Vector);
16                 virtual void PointerReleased(void);
17 //              virtual bool NeedsUpdate(void);
18
19         protected:
20                 double radius;                                          // Center is Object::position
21                 Vector oldPoint;                                        // Used for dragging
22
23         private:
24                 bool dragging;
25                 bool draggingHandle1;
26                 bool draggingHandle2;
27 //              bool needUpdate;
28                 bool objectWasDragged;
29 };
30
31 #endif  // __CIRCLE_H__