X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fobject.h;h=f7d5d7c0a493b02c31d07070ef7bcdcc511e0baf;hb=8a5bf49d09b5a00ebea3ffc449519ad05b0326cc;hp=08b7e9dc9f9324c79a3c9da6d6f6aedc0f287438;hpb=31dd33b097661175a86b6799df525972055099fb;p=architektonas diff --git a/src/object.h b/src/object.h index 08b7e9d..f7d5d7c 100644 --- a/src/object.h +++ b/src/object.h @@ -27,7 +27,7 @@ class Object virtual void Draw(Painter *); virtual Vector Center(void); virtual bool Collided(Vector); - virtual void PointerMoved(Vector); + virtual bool PointerMoved(Vector); virtual void PointerReleased(void); virtual bool NeedsUpdate(void); virtual bool HitTest(Point); @@ -62,8 +62,9 @@ class Object static void SetSnapMode(bool state = true); static Vector SnapPointToGrid(Vector); - protected: + public: Vector position; // All objects have a position (doubles as reference point) + protected: Object * parent; //this needs to be added eventually // Pen pen;