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);
35 Vector position; // All objects have a position (doubles as reference point)
42 Dimension * dimPoint1;
43 Dimension * dimPoint2;
47 static bool fixedAngle;
48 static bool fixedLength;
49 static int viewportHeight;
52 #endif // __OBJECT_H__