diff options
author | Alexander Harkness <me@bearbin.net> | 2020-05-03 22:04:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-03 22:04:33 +0200 |
commit | 994036a3b8b09f8da1b6ec2055cc7a5ceb05a776 (patch) | |
tree | 54de33e0f563209cdabc40067b72328ec3126be8 /src/Entities/Entity.h | |
parent | Update src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h (diff) | |
download | cuberite-994036a3b8b09f8da1b6ec2055cc7a5ceb05a776.tar cuberite-994036a3b8b09f8da1b6ec2055cc7a5ceb05a776.tar.gz cuberite-994036a3b8b09f8da1b6ec2055cc7a5ceb05a776.tar.bz2 cuberite-994036a3b8b09f8da1b6ec2055cc7a5ceb05a776.tar.lz cuberite-994036a3b8b09f8da1b6ec2055cc7a5ceb05a776.tar.xz cuberite-994036a3b8b09f8da1b6ec2055cc7a5ceb05a776.tar.zst cuberite-994036a3b8b09f8da1b6ec2055cc7a5ceb05a776.zip |
Diffstat (limited to 'src/Entities/Entity.h')
-rw-r--r-- | src/Entities/Entity.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h index 2d9781edb..9cb0f970a 100644 --- a/src/Entities/Entity.h +++ b/src/Entities/Entity.h @@ -1,6 +1,7 @@ #pragma once +#include "../BoundingBox.h" #include "../Item.h" #include "../OSSupport/AtomicUniquePtr.h" @@ -239,6 +240,8 @@ public: int GetChunkX(void) const { return FloorC(m_Position.x / cChunkDef::Width); } int GetChunkZ(void) const { return FloorC(m_Position.z / cChunkDef::Width); } + cBoundingBox GetBoundingBox() const { return cBoundingBox(GetPosition(), GetWidth() / 2, GetHeight()); } + void SetHeadYaw (double a_HeadYaw); void SetMass (double a_Mass); void SetPosX (double a_PosX) { SetPosition({a_PosX, m_Position.y, m_Position.z}); } |