X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fobject.cpp;h=3820d7ee374bafe8c860395fd046302615222d1f;hb=746443089f76c115245d1500b780d7d189b9b2af;hp=c2e874c415ed56db511c90dd6a5db05a03a4203e;hpb=9f6ad3fe0b9cb30115a5d38e8af3aebed0d70c08;p=architektonas diff --git a/src/object.cpp b/src/object.cpp index c2e874c..3820d7e 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -21,15 +21,17 @@ bool Object::fixedAngle = false; bool Object::fixedLength = false; QFont * Object::font = 0; int Object::viewportHeight = 0; +bool Object::deleteActive = false; +bool Object::dimensionActive = false; Object::Object(): position(Vector(0, 0)), parent(0), state(OSInactive), oldState(OSInactive), - needUpdate(false) + needUpdate(false), attachedDimension(0) { } Object::Object(Vector v, Object * passedInParent/*= 0*/): position(v), parent(passedInParent), - state(OSInactive), oldState(OSInactive), needUpdate(false) + state(OSInactive), oldState(OSInactive), needUpdate(false), attachedDimension(0) { } @@ -64,6 +66,20 @@ Object::~Object() return needUpdate; } +// This is intended to be overridden by the Container class, for object morphing +/*virtual*/ void Object::Transmute(Object *, Object *) +{ +} + +/*virtual*/ Object * Object::GetParent(void) +{ + return parent; +} + +/*virtual*/ void Object::Add(Object *) +{ +} + ObjectState Object::GetState(void) { return state; @@ -90,3 +106,13 @@ void Object::SetViewportHeight(int height) { viewportHeight = height; } + +void Object::SetDeleteActive(bool state/*= true*/) +{ + deleteActive = state; +} + +void Object::SetDimensionActive(bool state/*= true*/) +{ + dimensionActive = state; +}