diff options
author | beeduck <b33duck@gmail.com> | 2016-07-18 22:10:00 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-07-18 22:10:00 +0200 |
commit | db65e11d57fb52395a3ba2e9372bdaf29aca691c (patch) | |
tree | 25bcc8449ab859676dcc2dea7b318051c22e51f1 /src/Entities/Entity.h | |
parent | Update README.md (#3266) (diff) | |
download | cuberite-db65e11d57fb52395a3ba2e9372bdaf29aca691c.tar cuberite-db65e11d57fb52395a3ba2e9372bdaf29aca691c.tar.gz cuberite-db65e11d57fb52395a3ba2e9372bdaf29aca691c.tar.bz2 cuberite-db65e11d57fb52395a3ba2e9372bdaf29aca691c.tar.lz cuberite-db65e11d57fb52395a3ba2e9372bdaf29aca691c.tar.xz cuberite-db65e11d57fb52395a3ba2e9372bdaf29aca691c.tar.zst cuberite-db65e11d57fb52395a3ba2e9372bdaf29aca691c.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 b00201f3a..6923795db 100644 --- a/src/Entities/Entity.h +++ b/src/Entities/Entity.h @@ -421,6 +421,9 @@ public: /** Updates clients of changes in the entity. */ virtual void BroadcastMovementUpdate(const cClientHandle * a_Exclude = nullptr); + /** Gets entity (vehicle) attached to this entity */ + cEntity * GetAttached(); + /** Attaches to the specified entity; detaches from any previous one first */ void AttachTo(cEntity * a_AttachTo); |