summaryrefslogtreecommitdiffhomepage
path: root/src/entity.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-21 10:53:32 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-21 10:53:49 +0100
commit15bbfc100a79a975f6024d6e2e6522c4e91f2cb5 (patch)
tree1fa630728c14b0973a042b50ec712f1303b82eff /src/entity.hpp
parent5dbee173b961792b42596cb792a50624555cc41b (diff)
src, draw: work on depth and z offsets
Diffstat (limited to 'src/entity.hpp')
-rw-r--r--src/entity.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/entity.hpp b/src/entity.hpp
index f2f6c65b..cb5eea3b 100644
--- a/src/entity.hpp
+++ b/src/entity.hpp
@@ -53,8 +53,9 @@ struct entity
virtual ~entity() noexcept;
virtual Vector2 ordinal_offset(Vector2b offset) const = 0;
+ virtual Vector2 depth_offset() const = 0;
float ordinal() const;
- float ordinal(local_coords xy, Vector2b offset, Vector2b z_offset) const;
+ float ordinal(local_coords xy, Vector2b offset, Vector2s z_offset) const;
struct chunk& chunk() const;
size_t index() const;