// (C) 2011 Underground Software
// See the README and GPLv3 files for licensing and warranty information
//
-// JLH = James L. Hammons <jlhamm@acm.org>
+// JLH = James Hammons <jlhamm@acm.org>
//
// WHO WHEN WHAT
// --- ---------- ------------------------------------------------------------
int Object::viewportHeight = 0;
bool Object::deleteActive = false;
bool Object::dimensionActive = false;
+bool Object::snapToGrid = true;
Object::Object(): position(Vector(0, 0)), parent(0), state(OSInactive), oldState(OSInactive),
{
}
+// This returns a pointer to the point passed in, if it coincides. Otherwise returns NULL.
+/*virtual*/ Vector * Object::GetPointAt(Vector)
+{
+ return 0;
+}
+
ObjectState Object::GetState(void)
{
return state;
}
+void Object::Reparent(Object * newParent)
+{
+ parent = newParent;
+}
+
+Dimension * Object::GetAttachedDimension(void)
+{
+ return attachedDimension;
+}
+
// Class methods...
void Object::SetFixedAngle(bool state/*= true*/)
{
dimensionActive = state;
}
+
+void Object::SetSnapMode(bool state/*= true*/)
+{
+ snapToGrid = state;
+}