summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-04-08 04:26:45 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-04-08 04:26:50 +0200
commit51e724595fdeb95366d1ef9e096742a0ea394e0e (patch)
tree080aca5216461d3a354cb93c6e789a9ecc3b2468 /src
parent43e95aaba41de5a39519debf875113f08ea1a3c4 (diff)
c
Diffstat (limited to 'src')
-rw-r--r--src/object.cpp24
1 files changed, 4 insertions, 20 deletions
diff --git a/src/object.cpp b/src/object.cpp
index f0a0aa04..47383bf1 100644
--- a/src/object.cpp
+++ b/src/object.cpp
@@ -87,11 +87,6 @@ float object::ordinal(local_coords xy, Vector2b offset, Vector2s z_offset) const
return vec[0] + vec[1] + Vector2(z_offset).sum();
}
-class chunk& object::chunk() const
-{
- return *c;
-}
-
size_t object::index() const
{
auto& c = chunk();
@@ -103,16 +98,6 @@ size_t object::index() const
return (size_t)std::distance(es.cbegin(), it);
}
-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)
{
@@ -362,15 +347,14 @@ void object::set_bbox(Vector2b offset_, Vector2b bb_offset_, Vector2ub bb_size_,
bool object::can_activate(size_t) const { return false; }
bool object::activate(size_t) { return false; }
+class chunk& object::chunk() const { return *c; }
+bool object::is_virtual() const { return false; }
+point object::position() const { return {coord, offset}; }
+object_type object::type_of() const noexcept { return type(); }
bool object::is_dynamic() const
{
return atlas->info().fps > 0;
}
-object_type object::type_of() const noexcept
-{
- return type();
-}
-
} // namespace floormat