diff options
author | Marvin Kopf <marvinkopf@posteo.de> | 2016-02-02 14:44:10 +0100 |
---|---|---|
committer | Marvin Kopf <marvinkopf@posteo.de> | 2016-02-02 14:57:20 +0100 |
commit | a1c48f4853b234e920e96671c4ff218567d4f2d4 (patch) | |
tree | b6f5c8c073837c43f15b68414db1aaa92bbbab6a /src/Entities/Entity.h | |
parent | Merge pull request #2936 from mathias-github/master (diff) | |
download | cuberite-a1c48f4853b234e920e96671c4ff218567d4f2d4.tar cuberite-a1c48f4853b234e920e96671c4ff218567d4f2d4.tar.gz cuberite-a1c48f4853b234e920e96671c4ff218567d4f2d4.tar.bz2 cuberite-a1c48f4853b234e920e96671c4ff218567d4f2d4.tar.lz cuberite-a1c48f4853b234e920e96671c4ff218567d4f2d4.tar.xz cuberite-a1c48f4853b234e920e96671c4ff218567d4f2d4.tar.zst cuberite-a1c48f4853b234e920e96671c4ff218567d4f2d4.zip |
Diffstat (limited to '')
-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 3715fb5c4..dbfc019e7 100644 --- a/src/Entities/Entity.h +++ b/src/Entities/Entity.h @@ -423,6 +423,9 @@ public: /** Detaches from the currently attached entity, if any */ virtual void Detach(void); + /** Returns true if this entity is attached to the specified entity */ + bool IsAttachedTo(const cEntity * a_Entity) const; + /** Makes sure head yaw is not over the specified range. */ void WrapHeadYaw(); |