summaryrefslogtreecommitdiffhomepage
path: root/src/object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object.cpp')
-rw-r--r--src/object.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/object.cpp b/src/object.cpp
index 001b9dc6..6284e3e9 100644
--- a/src/object.cpp
+++ b/src/object.cpp
@@ -103,6 +103,11 @@ bool object::is_virtual() const
return false;
}
+point object::position() const
+{
+ return {coord, offset};
+}
+
bool object::can_rotate(global_coords coord, rotation new_r, rotation old_r,
Vector2b offset, Vector2b bbox_offset, Vector2ub bbox_size)
{