]> Shamusworld >> Repos - architektonas/blobdiff - src/object.cpp
Added infrastructure to support mirror tool, cross compile script.
[architektonas] / src / object.cpp
index 93af822b8476008c2f60e6158955078cdaf38c0d..dd80007d1998cc4c4772848c35580a53fe2f9859 100644 (file)
@@ -33,17 +33,18 @@ bool Object::dontMove = false;
 bool Object::selectionInProgress = false;
 QRectF Object::selection;
 double Object::gridSpacing;
+int Object::currentLayer = 0;
 
 
 Object::Object(): position(Vector(0, 0)), parent(0), type(OTObject),
-       state(OSInactive), oldState(OSInactive), needUpdate(false)
+       state(OSInactive), layer(0), oldState(OSInactive), needUpdate(false)
        //, attachedDimension(0)
 {
 }
 
 
 Object::Object(Vector v,  Object * passedInParent/*= 0*/): position(v),
-       parent(passedInParent), state(OSInactive), oldState(OSInactive),
+       parent(passedInParent), state(OSInactive), layer(0), oldState(OSInactive),
        needUpdate(false)//, attachedDimension(0)
 {
 }
@@ -233,6 +234,12 @@ printf("Object: Destroyed!\n");
 }
 
 
+/*virtual*/ Object * Object::Mirror(Vector, Vector)
+{
+       return NULL;
+}
+
+
 ObjectState Object::GetState(void)
 {
        return state;