10 enum ObjectState { OSInactive, OSSelected };
16 Object(Vector, Object * passedInParent = 0);
19 virtual void Draw(QPainter *);
20 virtual Vector Center(void);
21 virtual bool Collided(Vector);
22 virtual void PointerMoved(Vector);
23 virtual void PointerReleased(void);
24 virtual bool NeedsUpdate(void);
25 virtual void Transmute(Object *, Object *);
26 ObjectState GetState(void);
29 static void SetFixedAngle(bool state = true);
30 static void SetFixedLength(bool state = true);
31 static void SetFont(QFont *);
32 static void SetViewportHeight(int);
33 static void SetDeleteActive(bool state = true);
36 Vector position; // All objects have a position (doubles as reference point)
43 Dimension * dimPoint1;
44 Dimension * dimPoint2;
48 static bool fixedAngle;
49 static bool fixedLength;
50 static int viewportHeight;
51 static bool deleteActive;
54 #endif // __OBJECT_H__